[package]
edition = "2018"
name = "simple_logger"
version = "5.2.0"
authors = ["Sam Clements <sam@borntyping.co.uk>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A logger that prints all messages with a readable output format"
readme = "README.md"
license = "MIT"
repository = "https://github.com/borntyping/rust-simple_logger"
[features]
colors = ["colored"]
default = [
"colors",
"timestamps",
]
nightly = []
stderr = []
threads = []
timestamps = ["time"]
[lib]
name = "simple_logger"
path = "src/lib.rs"
[[example]]
name = "colors"
path = "examples/colors.rs"
required-features = ["colors"]
[[example]]
name = "flush"
path = "examples/flush.rs"
[[example]]
name = "init"
path = "examples/init.rs"
[[example]]
name = "init_with_env"
path = "examples/init_with_env.rs"
[[example]]
name = "init_with_level"
path = "examples/init_with_level.rs"
[[example]]
name = "init_with_target_level"
path = "examples/init_with_target_level.rs"
[[example]]
name = "stderr"
path = "examples/stderr.rs"
required-features = [
"colors",
"stderr",
]
[[example]]
name = "threads"
path = "examples/threads.rs"
required-features = ["threads"]
[[example]]
name = "timestamps_format"
path = "examples/timestamps_format.rs"
required-features = ["timestamps"]
[[example]]
name = "timestamps_local"
path = "examples/timestamps_local.rs"
required-features = ["timestamps"]
[[example]]
name = "timestamps_none"
path = "examples/timestamps_none.rs"
required-features = ["timestamps"]
[[example]]
name = "timestamps_utc"
path = "examples/timestamps_utc.rs"
required-features = ["timestamps"]
[[example]]
name = "timestamps_utc_offset"
path = "examples/timestamps_utc_offset.rs"
required-features = ["timestamps"]
[[example]]
name = "wrap"
path = "examples/wrap.rs"
[dependencies.colored]
version = "^3.0.0"
optional = true
[dependencies.log]
version = "^0.4.28"
features = ["std"]
[dependencies.time]
version = "^0.3.47"
features = [
"formatting",
"local-offset",
"macros",
]
optional = true
[target."cfg(windows)".dependencies.windows-sys]
version = "^0.61.2"
features = [
"Win32_System_Console",
"Win32_Foundation",
]