Crate simplelog[−][src]
simplelog provides a series of logging facilities, that can be easily combined.
SimpleLogger(very basic logger that logs to stdout)TermLogger(advanced terminal logger, that splits to stdout/err and has color support) (can be excluded on unsupported platforms)WriteLogger(logs to a given struct implementingWrite, e.g. a file)CombinedLogger(can be used to form combinations of the above loggers)TestLogger(specialized logger for tests. Uses print!() / println!() for tests to be able to capture the output)
Only one Logger should be initialized of the start of your program
through the Logger::init(...) method. For the actual calling syntax
take a look at the documentation of the specific implementation(s) you wanna use.
Structs
| CombinedLogger | The CombinedLogger struct. Provides a Logger implementation that proxies multiple Loggers as one. |
| Config | Configuration for the Loggers |
| ConfigBuilder | Builder for the Logger Configurations ( |
| SimpleLogger | The SimpleLogger struct. Provides a very basic Logger implementation |
| TermLogger | The TermLogger struct. Provides a stderr/out based Logger implementation |
| WriteLogger | The WriteLogger struct. Provides a Logger implementation for structs implementing |
Enums
| Color | The set of available colors for the terminal foreground/background. |
| ColorChoice | ColorChoice represents the color preferences of an end user. |
| Level | An enum representing the available verbosity levels of the logger. |
| LevelFilter | An enum representing the available verbosity level filters of the logger. |
| LevelPadding | Padding to be used for logging the level |
| TerminalMode | Specifies which streams should be used when logging |
| ThreadLogMode | Mode for logging the thread name or id or both. |
| ThreadPadding | Padding to be used for logging the thread id/name |
Traits
| SharedLogger | Trait to have a common interface to obtain the Level of Loggers |