fmtlog
A simple configurable logger with format specification.
For more formats, see the Formats Collection.
Usage
Add to your Cargo.toml
:
[]
= "0.4"
= "0.1.3"
These features are included by the default, but you can remove these features.
Feature | Description |
---|---|
chrono |
Enable timestamps. |
colored |
Coloring the log. |
Like this:
[]
= "0.1.3"
= false
= ["chrono"]
and initialize the logger in your code:
extern crate log;
extern crate fmtlog;
For advanced usage, read the API document.
Features
- Format Specification
- Module-level Logging
- Timestamps Support
- Colorized Log
- Logging to the File
- Multiple log target
Documents
API Documents are available on docs.rs.
Author
- Watcol <potfman@gmail.com>
License
This program is licensed under the MIT license.
See LICENSE for details.