Module options

Source
Expand description

Available Options to configure the log output of this crate

Each logging output can be configured using constants defined in this module.

The Options struct is a bitfield struct that can be used to set the format of the log messages. It is usually passed to the hclog_init function but can also modified at runtime via the set_module_options, unset_module_options and reset_module_options functions.

Structs§

Options
Configuration options for the log messages

Constants§

BINNAME
Log messages include with binary name as set on library initialization
DATESTAMP
Log messages are prefixed with a datestamp
EXACT_LVL_MATCH
Match the exact level when logging a message
FILE
Log messages are prefixed with the file name
FUNC
Log messages are prefixed with the function name
LINE
Log messages are prefixed with the line number
LINEBUFFERED
Log messages are written line buffered
LOGCOMPAT
Enable compatibility with the log crate
MODULE
Log messages are prefixed with the module name
NANOSEC
Log messages timestamp is suffixed with nanoseconds
NONE
No options set at all
PID
Log messages are prefixed with the process id
SCOPE
Log messages are prefixed with the scope
SEVERITY
Log messages are prefixed with the severity level
TID
Log messages are prefixed with the thread id
TIMESTAMP
Log messages are prefixed with a timestamp