Cargo Features
[dependencies]
pokey_logger = { version = "0.3.3", default-features = false, features = ["time", "log_files", "config", "env"] }
- default = env, log_files, time
-
These default features are set whenever
pokey_logger
is added without
somewhere in the dependency tree.default-features = false - time default = chrono
-
Logging time with messages
Affects
pokey_logger::time
… - log_files default = chrono
-
The output of logs to files.
Affects
config_file::ConfigFile.existing_log_handler
,pokey_logger::existing_log_handler
… - config = serde, serde_yaml
-
Load settings from a config file. Not included by default. Not included by default because at the time of adding this feature, on macOS intel chip, two thirds of the final .rlib file was just from this feature alone.
- env default
-
Configure the application through environment variables.
Affects
pokey_logger::environment
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- chrono log_files time
-
Enables chrono
Chrono dep used for displaying the time on log messages. Used in the 'time'
feature, which is default. - serde config?
-
Enables serde
Used for loading config files.
- serde_yaml config?
-
Enables serde_yaml ~0.8.23