CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
logfile.h File Reference

File-based log destination with rotation support. More...

#include <cx/fs/vfs.h>
#include <cx/log/log.h>
#include <cx/log/logserializer.h>

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_ROTATE_MODE { LOG_RotateSize = 1 , LOG_RotateTime }
 Log rotation mode. More...
 

Functions

LogDest * logfileRegister (int maxlevel, strref chanfilter, VFS *vfs, strref filename, const LogFileConfig *config, LogSerializer *ser)
 
LogFileDatalogfileCreate (VFS *vfs, strref filename, const LogFileConfig *config, LogSerializer *ser)
 
void logfileMsgFunc (const LogRecord *rec, void *userdata)
 
void logfileBatchFunc (uint32 batchid, void *userdata)
 
void logfileCloseFunc (void *userdata)
 

Detailed Description

File-based log destination with rotation support.

Definition in file logfile.h.