void DestroyConsoleLogger(ILogger *logger)
Destroy the given instance of an ILogger for outputting to a console.
ILogger * CreateConsoleLogger(void)
Create an instance of an ILogger that outputs to a console.
ILogger * CreateFileLogger(const char *filename)
Create an instance of an ILogger that outputs to a file.
void DestroyFileLogger(ILogger *logger)
Destroy the given instance of an ILogger for outputting to a file.
ILogger * CreateLogger(LoggerTypes loggerType, const char *filename)
Return an interface for the specified logger.
void DestroyLogger(ILogger *logger)
Release any resources associated with the given logger. The given ILogger instance is no longer valid...
Declaration of the ILogger interface, along with the CreateLogger() and DestroyLogger() functions use...
LoggerTypes
A value passed to CreateLogger() to specify the type of logger to create.
@ LoggerType_ToFile
Log to a file. One additional parameter: the name of the file to log to.
@ LoggerType_ToNull
Log to nowhere, that is, throw out all logging. No additional parameters.
@ LoggerType_ToConsole
Log to the console. No additional parameters.
void DestroyNullLogger(ILogger *logger)
Destroy the given instance of an ILogger for outputting to a console.
ILogger * CreateNullLogger(void)
Create an instance of an ILogger that outputs to a console.
Declaration of the ConsoleLogger class used in the Bridge Pattern.
Declaration of the FileLogger class used in the Bridge Pattern.
Declaration of the NullLogger class used in the Bridge Pattern.
LoggerTypes loggerType
The type of this logger, as identified by a value from the LoggerTypes enumeration.