Метод | Описание | |
---|---|---|
ConsoleLogger ( string contextName, bool>.IDictionary |
Constructor
|
|
IsLogging ( LogCategory logCategory ) : bool |
Checks the logger to see if it has been enabled to log messages of the specified LogCategory type.
|
|
Log ( |
Creates a single log entry for with the appropriate exception message. Although this is an interface and you can implement it as you wish for Log4NetLogger We log an entry with LogCategory.Exception unless the exception inherits from UserException in which case we log this with the LogCategory.Info
|
|
Log ( string message, |
Creates a single log entry for with the appropriate exception message and message. Although this is an interface and you can implement it as you wish for Log4NetLogger We log an entry with LogCategory.Exception unless the exception inherits from UserException in which case we log this with the LogCategory.Info
|
|
Log ( string message, |
Creates a single log entry for with appropriate exception message and message with the specified LogCategory.
|
|
Log ( string message, LogCategory logCategory ) : void |
Creates a single log entry for with the message with the appropriate message
|
|
SetIsLogging ( LogCategory logCategory, bool isLogging ) : void |
Set up the LogCategory for logging
|
public ConsoleLogger ( string contextName, bool>.IDictionary |
||
contextName | string | The name of the logger |
isLogging | bool>.IDictionary | Whether each |
Результат | System |
public IsLogging ( LogCategory logCategory ) : bool | ||
logCategory | LogCategory | The |
Результат | bool |
public Log ( |
||
exception | ||
Результат | void |
public Log ( string message, |
||
message | string | The additional log message to be logged with the exception |
exception | ||
Результат | void |
public Log ( string message, |
||
message | string | The additional log message to be logged with the exception |
exception | The exception being logged | |
logCategory | LogCategory | The specified LogCategory |
Результат | void |
public Log ( string message, LogCategory logCategory ) : void | ||
message | string | |
logCategory | LogCategory | |
Результат | void |
public SetIsLogging ( LogCategory logCategory, bool isLogging ) : void | ||
logCategory | LogCategory | |
isLogging | bool | |
Результат | void |