Expand description
#xlog xlog is comprise of a xlog server and multiple xlog clients, which can be configured with different log filter level application’s log message can be send to the server only when the log level higher than the log filter level each application module can create their own xlog client instance, then calling xlog client method to process log, xlog client using UDP socket to send json formatted message to xlog server, then xlog server filter the log by configured filter level after receiving client’s log message, the write to the disk periodically
Modules§
Structs§
- Inner
LogMsg - log_
client_ t - log_
service_ config_ t - configuration for create a log service
- log_
service_ t - log service should be create only once in any system
- xlogger_
t - Log client instance, should be created before using log function
Constants§
- LOG_
DEF_ CONSOLE_ OUTPUT_ LEVEL - LOG_
DEF_ PERSISTENT_ LEVEL - LOG_
DEF_ SERVICE_ PORT - LOG_
LEVEL_ ALERT - LOG_
LEVEL_ CRITICAL - LOG_
LEVEL_ DEBUG - LOG_
LEVEL_ EMERGENCY - LOG_
LEVEL_ ERROR - LOG_
LEVEL_ INFO - LOG_
LEVEL_ MAX - LOG_
LEVEL_ NOTICE - LOG_
LEVEL_ WARNING - LOG_
TYPE_ OPERATION - LOG_
TYPE_ SECURITY - LOG_
TYPE_ SYSTEM - SYSLOG_
DEF_ UDP_ PORT
Traits§
- LogListener
- Log listener, for application want to implement specific log storage & report function