Manual - C++

Functions

void logAppName(const char *name); // Sets name of application in logfile.
const char* logGetAppName();       // Return name of application.
void logMask(const char *mask);    // Loggin mask.
int logFile(const char *file);     // Log to this file.
int logReopen();                   // Reopen logfile.
void logStderr(int err);           // Log to stderr too.
int logStderrValue();
void logInit(void);
void logMaskSource(unsigned *maskSource);
void logMaskValue(char *mask, size_t len);
int logOwnerName(const char *user, const char *group); // user:group of logfile owner.
int logOwnerId(uid_t user, gid_t group);               // uid:gid of logfile owner.
void logBufSize(unsigned bufSize);                     // log buffer size.
void logUseStderr(int use);
int logCheckLevel(int level);
void logTimePrecision(unsigned int precision);
void logTimePrecisionSource(unsigned int *precisionSource);
unsigned int logTimePrecisionValue();
const char* logFileValue();

Constants

INFO1, INFO2, INFO3, INFO4,
WARN1, WARN2, WARN3, WARN4,
ERR1, ERR2, ERR3, ERR4,
FATAL1, FATAL2, FATAL3, FATAL4,
DBG1, DBG2, DBG3, DBG4,
PID_APPNAME

Log mask

Ix - for infos up to x Wx - for warns up to x Ex - for errors up to x Fx - for fatal errors up to x Dx - for debug messages up to x A - for all messages default: W3E3F3

< back