Module xlog

Module xlog 

Source
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§

syslog
xlog_server
xlogger

Structs§

InnerLogMsg
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

Type Aliases§

LOG_LEVEL