Crate rs_logger

Source

Macros§

log_print
log_print! can be used before the logging framework is initialized

Structs§

BaseLogger
Base Logger
LogFileWriter
LogFileWriter is a simple implementation of LogWriter that writes logs to a single file.
NopAppender
NopAppender is a no-operation appender that does nothing
SharedFile
SharedFile is a thread-safe wrapper around a file that allows multiple threads to write to it concurrently
Stderr
Stderr is used to write log to stderr
Stdout
Stdout is used to write log to stdout

Traits§

LogAppender
LogAppend can add extra information after level、time and before log message. For example, you can add trace id, thread id and so on
LogWriter
LogWriter is used to write log to a specific output, such as stdout, stderr or a file

Type Aliases§

FileLogger
Logger that outputs to a file
Logger
Default Logger, will output to stderr
StdoutLogger
Logger that outputs to stdout