Implementation of the null logger, along with the CreateNullLogger() and DestroyNullLogger() factory functions used in the Bridge Pattern. More...
Go to the source code of this file.
Functions | |
static void | _Null_LogTrace (const char *message, void *data) |
Write a trace message to a null logger (basically, discard the log message). | |
static void | _Null_LogInfo (const char *message, void *data) |
Write an informational message to a null logger (basically, discard the log message). | |
static void | _Null_LogError (const char *message, void *data) |
Write an error message to a null logger (basically, discard the log message). | |
ILogger * | CreateNullLogger (void) |
Create an instance of an ILogger that outputs to a console. | |
void | DestroyNullLogger (ILogger *logger) |
Destroy the given instance of an ILogger for outputting to a console. | |
Implementation of the null logger, along with the CreateNullLogger() and DestroyNullLogger() factory functions used in the Bridge Pattern.
Definition in file Bridge_NullLogger.c.
|
static |
Write an error message to a null logger (basically, discard the log message).
message | Unused. |
data | Unused. |
Definition at line 47 of file Bridge_NullLogger.c.
Referenced by CreateNullLogger().
|
static |
Write an informational message to a null logger (basically, discard the log message).
message | Unused. |
data | Unused. |
Definition at line 32 of file Bridge_NullLogger.c.
Referenced by CreateNullLogger().
|
static |
Write a trace message to a null logger (basically, discard the log message).
message | Unused. |
data | Unused. |
Definition at line 17 of file Bridge_NullLogger.c.
Referenced by CreateNullLogger().
ILogger * CreateNullLogger | ( | void | ) |
Create an instance of an ILogger that outputs to a console.
Definition at line 60 of file Bridge_NullLogger.c.
References _Null_LogError(), _Null_LogInfo(), _Null_LogTrace(), ILogger::data, ILogger::LogError, ILogger::LogInfo, and ILogger::LogTrace.
Referenced by CreateLogger().
void DestroyNullLogger | ( | ILogger * | logger | ) |
Destroy the given instance of an ILogger for outputting to a console.
logger | The ILogger instance to destroy. |
Definition at line 77 of file Bridge_NullLogger.c.
Referenced by DestroyLogger().