Logsy
Just logging as it should be. While it barely exceeds 100 lines of source code, it covers almost any practical case you could ever encounter.
Common concepts
- Use
logsy::set_echo()to start logging into stdout - Use
logsy::set_filename()to start logging into a specified file. If parent dir doesn't exists, it's going to be created - Use
logsy::set_level()to alter logging level (defaults toLevelFilter::Info) - You can combine
logsy::set_echo()andlogsy::set_filename()in the same application - You can alter the settings by calling
logsy::set_echo()orlogsy::set_filename()again at any time - Rather being a standalone package, it's simply a backend for the famous log crate
Example
use *;