C# Class OpenQA.Selenium.Remote.Server.Logger

Provides the services required to log messages.
显示文件 Open project: jimevans/strontium

Public Methods

Method Description
Log ( string message ) : void

Writes an informational message to the log.

Log ( string message, LogLevel level ) : void

Writes a message to the log with a given logging level.

Protected Methods

Method Description
Logger ( LogLevel level ) : System

Initializes a new instance of the Logger class.

WriteMessage ( string message ) : void

Writes a message to the log.

Private Methods

Method Description
FormatLogMessage ( string message, LogLevel level ) : string

Method Details

Log() public method

Writes an informational message to the log.
public Log ( string message ) : void
message string The message to write to the log.
return void

Log() public method

Writes a message to the log with a given logging level.
public Log ( string message, LogLevel level ) : void
message string The message to write to the log.
level LogLevel The logging level of the message.
return void

Logger() protected method

Initializes a new instance of the Logger class.
protected Logger ( LogLevel level ) : System
level LogLevel A value specifying the level of messages to log.
return System

WriteMessage() protected abstract method

Writes a message to the log.
protected abstract WriteMessage ( string message ) : void
message string The message to write to the log.
return void