메소드 | 설명 | |
---|---|---|
DebugOutLogger ( string logName, LogLevel logLevel, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : System |
Creates and initializes a logger that writes messages to System.Diagnostics.Debug.
|
메소드 | 설명 | |
---|---|---|
WriteInternal ( LogLevel level, object message, |
Do the actual logging by constructing the log message using a StringBuilder then sending the output to Debug >> Out" />.
|
public DebugOutLogger ( string logName, LogLevel logLevel, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : System | ||
logName | string | The key, usually type key of the calling class, of the logger. |
logLevel | LogLevel | The current logging threshold. Messages received that are beneath this threshold will not be logged. |
showLevel | bool | Include the current log level in the log message. |
showDateTime | bool | Include the current time in the log message. |
showLogName | bool | Include the instance key in the log message. |
dateTimeFormat | string | The date and time format to use in the log message. |
리턴 | System |
protected WriteInternal ( LogLevel level, object message, |
||
level | LogLevel | The |
message | object | The log message. |
e | An optional |
|
리턴 | void |