Skip to content

Commit

Permalink
Add discussion of configurable logging level features to changelog an…
Browse files Browse the repository at this point in the history
…d readme
  • Loading branch information
kevinaboos authored and rafalh committed Oct 23, 2021
1 parent 1db1597 commit 87fc1ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ New features:
* Remove `byteorder` dependency.
* Bump up minimal Rust compiler version to 1.46.0.
* Build the crate using the 2018 edition.
* Add support for compile-time configuration of logging levels via Cargo features. By default, all logging levels are
enabled, including "trace" and up.

0.3.4 (2020-07-20)
------------------
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Features:
* FAT12, FAT16, FAT32 compatibility
* LFN (Long File Names) extension is supported
* Basic no_std environment support
* logging configurable at compile time using cargo features

Usage
-----
Expand Down Expand Up @@ -59,6 +60,13 @@ Additional features:
a memory allocator implementation.
* `unicode` - use Unicode-compatible case conversion in file names - you may want to have it disabled for lower memory
footprint
* `log_level_*` - enable specific logging levels at compile time.
The options are as follows:
* `log_level_error` - enable only error-level logging.
* `log_level_warn` - enable warn-level logging and higher.
* `log_level_info` - enable info-level logging and higher.
* `log_level_debug` - enable debug-level logging and higher.
* `log_level_trace` - (default) enable all logging levels, trace and higher.

Note: above features are enabled by default and were designed primarily for `no_std` usage.

Expand Down

0 comments on commit 87fc1ed

Please sign in to comment.