Crate | Documentation | Linux/OS X | Windows |
---|---|---|---|
A simple logger for the log
facade. One
log message is written per line. Each line also includes the time it was
logged, the logging level and the ID of the thread.
Examples
Most users will simply need to call log_to_file()
with the path to the log file and minimum log level:
use LevelFilter;
log_to_file;
Or use log_to_stderr()
if simply logging to
stderr
:
use LevelFilter;
log_to_stderr;
For more control, log_to()
can be used with an
arbitrary sink implementing
Write
+
Send
+ 'static
:
use LevelFilter;
use io;
log_to;