Explorar o código

Update documentation and bump version

Sam Clements %!s(int64=2) %!d(string=hai) anos
pai
achega
cdab359515
Modificáronse 2 ficheiros con 16 adicións e 4 borrados
  1. 1 1
      Cargo.toml
  2. 15 3
      README.md

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 [package]
 name = "simple_logger"
 name = "simple_logger"
-version = "4.0.0"
+version = "4.1.0"
 license = "MIT"
 license = "MIT"
 authors = ["Sam Clements <[email protected]>"]
 authors = ["Sam Clements <[email protected]>"]
 description = "A logger that prints all messages with a readable output format"
 description = "A logger that prints all messages with a readable output format"

+ 15 - 3
README.md

@@ -2,7 +2,7 @@
 
 
 A logger that prints all messages with a readable output format.
 A logger that prints all messages with a readable output format.
 
 
-The output format is based on the format used by [Supervisord](https://github.com/Supervisor/supervisor), with timestamps in default [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339) format and custom format.
+The output format is based on the format used by [Supervisord](https://github.com/Supervisor/supervisor), with timestamps default [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339) format. The format used for timestamps can be customised.
 
 
 * [Source on GitHub](https://github.com/borntyping/rust-simple_logger)
 * [Source on GitHub](https://github.com/borntyping/rust-simple_logger)
 * [Packages on Crates.io](https://crates.io/crates/simple_logger)
 * [Packages on Crates.io](https://crates.io/crates/simple_logger)
@@ -38,7 +38,7 @@ You can run the above example with:
 cargo run --example init
 cargo run --example init
 ```
 ```
 
 
-Coloured output and timestamps will be enabled by default. You can remove these
+The `colors` and `timestamps` features are enabled by default. You can remove these
 features and their respective dependencies by disabling all features in your
 features and their respective dependencies by disabling all features in your
 `Cargo.toml`.
 `Cargo.toml`.
 
 
@@ -63,6 +63,13 @@ default-features = false
 features = ["colors"]
 features = ["colors"]
 ```
 ```
 
 
+To include thread metadata use the `threads` and `nightly` features:
+
+```toml
+[dependencies.simple_logger]
+features = ["threads", "nightly"]
+```
+
 To direct logging output to `stderr` use the `stderr` feature:
 To direct logging output to `stderr` use the `stderr` feature:
 
 
 ```toml
 ```toml
@@ -70,7 +77,12 @@ To direct logging output to `stderr` use the `stderr` feature:
 features = ["stderr"]
 features = ["stderr"]
 ```
 ```
 
 
-This can be combined with any other feature.
+Multiple features can be combined.
+
+```toml
+[dependencies.simple_logger]
+features = ["colors", "threads", "timestamps", "nightly", "stderr"]
+```
 
 
 Licence
 Licence
 -------
 -------