Browse Source

Name the feature timestamps instead of ts

Sam Clements 3 years ago
parent
commit
841677e4ad
2 changed files with 7 additions and 6 deletions
  1. 1 1
      Cargo.toml
  2. 6 5
      README.md

+ 1 - 1
Cargo.toml

@@ -10,7 +10,7 @@ edition = "2018"
 [features]
 default = ["colored", "chrono"]
 color = ["colored"]
-ts = ["chrono"]
+timestamps = ["chrono"]
 
 [dependencies]
 log = { version = "^0.4.5", features = ["std"] }

+ 6 - 5
README.md

@@ -33,23 +33,24 @@ You can run the above example with:
 cargo run --example init
 ```
 
-If you want to remove the colorized output and the timestamps with its respective dependencies, add the
-the following to your Cargo.toml:
+Coloured output and timestamps will be enabled by default. You can remove these
+features and their respective dependencies by disabling all features in your 
+`Cargo.toml`.
 
 ```
 [dependencies.simple_logger]
 default-features = false
 ```
 
-Or to remove only the colorized output but keep the timestamps:
+To include the `timestamps` feature, but not the `color` feature:
 
 ```
 [dependencies.simple_logger]
 default-features = false
-features = ["ts"]
+features = ["timestamps"]
 ```
 
-Or to remove only the timestamps but keep the colorized output:
+To include the `color` feature, but not the `timestamps` feature:
 
 ```
 [dependencies.simple_logger]