sensible-env-logger 0.2.0

A pretty, sensible logger for Rust.
Documentation
[package]
name = "sensible-env-logger"
version = "0.2.0"
authors = ["Ritvik Nag <rv.kvetch@gmail.com>"]
description = "A pretty, sensible logger for Rust."
documentation = "https://docs.rs/sensible-env-logger"
repository = "https://github.com/rnag/sensible-env-logger"
readme = "README.md"
keywords = ["log", "logger", "logging", "env", "pretty"]
categories = ["development-tools::debugging"]
license = "MIT"
edition = "2021"

include = [
    "Cargo.toml",
    "LICENSE",
    "src/**/*",
    "examples/**"
]

# See here for more info: https://blog.rust-lang.org/2020/03/15/docs-rs-opt-into-fewer-targets.html

[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
pretty_env_logger = "^0.4"
log = "^0.4"

# Optional dependencies
chrono = { version = "^0.4", optional=true, default-features = false}

[dev-dependencies]
# version_sync: to ensure versions in `Cargo.toml` and `README.md` are in sync
version-sync = "0.9.4"
# cargo-bump: to bump package version and tag a commit at the same time.
# actually, the docs recommend installing this globally:
#   $ cargo install cargo-bump
# cargo-bump = "1.1.0"

### FEATURES #################################################################

[features]

# This feature activates the `init_timed_short` and `try_init_timed_short`
# helper functions, which reports only the local time part (without the date)
# in the log messages.
#
# An example record would look like this:
#    3:15:51.624 INFO  my_module > this is an info message
local-time = ["chrono/clock"]


[[example]]
name = "log_timed_short"
required-features = ["local-time"]

[[example]]
name = "with_builder"
required-features = ["local-time"]