Declaration of the CreateFileLogger() and DestroyFileLogger() factory functions used in the Bridge Pattern. More...
#include "Bridge_ILogger.h"

Go to the source code of this file.
Macros | |
| #define | __BRIDGE_FILELOGGER_H__ |
Functions | |
| 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. | |
Declaration of the CreateFileLogger() and DestroyFileLogger() factory functions used in the Bridge Pattern.
Definition in file c/Bridge_FileLogger.h.
| #define __BRIDGE_FILELOGGER_H__ |
Definition at line 8 of file c/Bridge_FileLogger.h.
| ILogger * CreateFileLogger | ( | const char * | filename | ) |
Create an instance of an ILogger that outputs to a file.
| filename | Name of the file to log to. The file will be overwritten. |
Definition at line 96 of file Bridge_FileLogger.c.
References _File_LogError(), _File_LogInfo(), _File_LogTrace(), ILogger::data, ILogger::LogError, ILogger::LogInfo, and ILogger::LogTrace.
Referenced by CreateLogger().
| void DestroyFileLogger | ( | ILogger * | logger | ) |
Destroy the given instance of an ILogger for outputting to a file.
| logger | The ILogger instance to destroy. |
Definition at line 127 of file Bridge_FileLogger.c.
References ILogger::data.
Referenced by DestroyLogger().