Represents a logger that writes to the console window. More...
Static Public Member Functions | |
static ILogger | CreateConsoleLogger () |
Create an instance of a console logger, where logging goes to the console. | |
Private Member Functions | |
ConsoleLogger () | |
Constructor. | |
void | _WriteLine (string logLevel, string msg) |
Send a formatted line to the console. | |
void ILogger. | LogTrace (string msg) |
Log trace messages to the configured output. | |
void ILogger. | LogInfo (string msg) |
Log informational messages to the configured output. | |
void ILogger. | LogError (string msg) |
Log error messages to the configured output. | |
void IDisposable. | Dispose () |
Shut down the logger gracefully (in this case, nothing really needs to be done). | |
Private Attributes | |
bool | _disposed |
Additional Inherited Members | |
void | LogTrace (string msg) |
Log trace messages to the configured output. | |
void | LogInfo (string msg) |
Log informational messages to the configured output. | |
void | LogError (string msg) |
Log error messages to the configured output. | |
Represents a logger that writes to the console window.
Definition at line 13 of file Bridge_ConsoleLogger.cs.
|
inlineprivate |
Constructor.
Definition at line 20 of file Bridge_ConsoleLogger.cs.
Referenced by ConsoleLogger.CreateConsoleLogger().
|
inlineprivate |
Send a formatted line to the console.
logLevel | The level of the log detail. |
msg | The message to log. |
Definition at line 30 of file Bridge_ConsoleLogger.cs.
References LoggerHelpers.FormatLogLine().
Referenced by FileLogger.LogError(), ConsoleLogger.LogError(), FileLogger.LogInfo(), ConsoleLogger.LogInfo(), FileLogger.LogTrace(), and ConsoleLogger.LogTrace().
|
inlinestatic |
Create an instance of a console logger, where logging goes to the console.
Definition at line 77 of file Bridge_ConsoleLogger.cs.
References ConsoleLogger.ConsoleLogger().
Referenced by Logger.Logger().
|
inlineprivate |
Shut down the logger gracefully (in this case, nothing really needs to be done).
Definition at line 62 of file Bridge_ConsoleLogger.cs.
References ConsoleLogger._disposed.
|
inlineprivate |
Log error messages to the configured output.
msg | The message to log. |
Implements ILogger.
Definition at line 50 of file Bridge_ConsoleLogger.cs.
References ConsoleLogger._WriteLine().
|
inlineprivate |
Log informational messages to the configured output.
msg | The message to log. |
Implements ILogger.
Definition at line 45 of file Bridge_ConsoleLogger.cs.
References ConsoleLogger._WriteLine().
|
inlineprivate |
Log trace messages to the configured output.
msg | The message to log. |
Implements ILogger.
Definition at line 40 of file Bridge_ConsoleLogger.cs.
References ConsoleLogger._WriteLine().
|
private |
Definition at line 15 of file Bridge_ConsoleLogger.cs.
Referenced by ConsoleLogger.Dispose().