|
CX Framework
Cross-platform C utility framework
|
File-based log destination with rotation support. More...
Go to the source code of this file.
Data Structures | |
| struct | LogFileConfig |
Typedefs | |
| typedef struct LogFileConfig | LogFileConfig |
| typedef struct LogFileData | LogFileData |
| Opaque handle for file logging state. | |
Enumerations | |
| enum | LOG_DATE_FORMATS { LOG_DateISO , LOG_DateISOCompact , LOG_DateNCSA , LOG_DateSyslog , LOG_DateISOCompactMsec } |
| Timestamp format options for log file output. More... | |
| enum | LOG_FLAGS { LOG_LocalTime = 0x0001 , LOG_OmitLevel = 0x0002 , LOG_ShortLevel = 0x0004 , LOG_BracketLevel = 0x0008 , LOG_JustifyLevel = 0x0010 , LOG_IncludeCategory = 0x0020 , LOG_BracketCategory = 0x0040 , LOG_AddColon = 0x0080 , LOG_CategoryFirst = 0x0100 } |
| Formatting flags for log file output. More... | |
| enum | LOG_ROTATE_MODE { LOG_RotateSize = 1 , LOG_RotateTime } |
| Log rotation mode. More... | |
Functions | |
| LogFileData * | logfileCreate (VFS *vfs, strref filename, LogFileConfig *config) |
| LogDest * | logfileRegister (int maxlevel, LogCategory *catfilter, LogFileData *logfile) |
| LogDest * | logfileRegisterWithDefer (int maxlevel, LogCategory *catfilter, LogFileData *logfile, LogDest *deferdest) |
| void | logfileMsgFunc (int level, LogCategory *cat, int64 timestamp, strref msg, uint32 batchid, void *userdata) |
| void | logfileBatchFunc (uint32 batchid, void *userdata) |
| void | logfileCloseFunc (void *userdata) |
File-based log destination with rotation support.
Definition in file logfile.h.