OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
syslog.h File Reference

Detailed Description

The upper layer of the Logging subsystem.

This module is the top half of the logging system. It's responsible for formatting messages and discarding messages that are less than the current log level.

Go to the source code of this file.

Typedefs

typedef void(* SysLogWriteFn )(const char *)
 A function pointer to log a message. More...
 

Enumerations

enum  SysLogLevel {
  SYSLOG_DEBUG, SYSLOG_INFO, SYSLOG_WARN, SYSLOG_ERROR,
  SYSLOG_FATAL, SYSLOG_ALWAYS
}
 The system log levels. More...
 

Functions

void SysLog_Initialize (SysLogWriteFn write_fn)
 Initialize the System Logging module. More...
 
void SysLog_Message (SysLogLevel level, const char *msg)
 Log a message. More...
 
void SysLog_Print (SysLogLevel level, const char *format,...)
 Format and log a message. More...
 
SysLogLevel SysLog_GetLevel ()
 Return the current log level. More...
 
void SysLog_SetLevel (SysLogLevel level)
 Set the log level. More...
 
void SysLog_Increment ()
 Increase the verbosity of the logging.
 
void SysLog_Decrement ()
 Decrease the verbosity of the logging.
 
const char * SysLog_LevelToString (SysLogLevel level)
 Return the string description of a log level. More...