[−][src]Function alass::alass_log_config
#[no_mangle] pub extern "C" fn alass_log_config(
stdout_level: usize,
stderr_level: usize,
log_file_level: usize,
log_file: *const c_char
) -> ResultCode
Configure logging
Logging can only be configured once per application; subsequent calls will
fail with ALASS_LOG_ALREADY_CONFIGURED
.
Also note that stderr_level
takes precedence over stdout_level
, so any
overlap will only go to stderr
. For example, if stdout
is ALASS_LOG_DEBUG
and stderr
is ALASS_LOG_WARN
, debug and info events will go to stdout
and warn and error to stderr
).
stdout_level
: Threshold of log events that should be written tostdout
.stderr_level
: Threshold of log events that should be written tostderr
.log_file_level
: Threshold of log events that should be written to log file.log_file
: Path of the file to recieve log events (or null if not applicable).