Errox
A simple and minimal error logging library.
Errox is a minimal error logging library to log Err return types and print them to stderr, with an optional timestamp.
Examples
use *; // This will use the default configuration.
Log leveling
Log leveling works by not showing any errors below the log level you have set. Log levels (in ascending order for priority) are as follows:
Error
Warning
Info
Debug
Trace
If you choose the warning log level, warnings and errors will be printed, while anything below warning will not be printed.
Writing a config file
To write a config file, you must make a file in the working directory of the binary with the name errox_config.toml.
Options for the file are log_level (variant of log_level, shown above) and time (boolean), to toggle the timestamp.
Example
= true
= "Error"
Default configuration
The default configuration is loaded when no configuration file has been created.
= true
= "Trace"