Function mlzlog::init
[−]
[src]
pub fn init<P: AsRef<Path>>(
log_path: P,
appname: &str,
show_appname: bool,
debug: bool,
use_stdout: bool
) -> Result<()>
Initialize default mlzlog settings.
log_path is the base path for logfiles. The appname is used as the base
name for the logfiles, with the current day appended. The logfile is rolled
over on midnight. A symbolic link named current always links to the
latest file.
If show_appname is true, the appname is prepended to console messages.
If debug is true, debug messages are output. If use_stdout is true, a
ConsoleAppender is created to log to stdout.