Cargo Features

[dependencies]
flexi_logger = { version = "0.28.0", default-features = false, features = ["async", "colors", "compress", "dont_minimize_extra_stacks", "json", "kv", "specfile", "specfile_without_notification", "syslog_writer", "textfilter", "trc"] }
default = colors, textfilter

These default features are set whenever flexi_logger is added without default-features = false somewhere in the dependency tree.

async trc?

Enables crossbeam-channel and crossbeam-queue

Affects write_mode::DEFAULT_POOL_CAPA, write_mode::DEFAULT_MESSAGE_CAPA

colors default = is-terminal

Enables nu-ansi-term ^0.49

Affects formats::colored_default_format, formats::colored_opt_format, formats::colored_detailed_format, formats::colored_with_thread, formats::style

compress

Enables flate2

dont_minimize_extra_stacks
json

Enables serde, serde_derive, and serde_json

Affects formats::json_format

kv

Enables kv_serde of log

specfile trc? = specfile_without_notification

Enables notify-debouncer-mini ^0.3

specfile_without_notification specfile?

Enables serde, serde_derive, and toml

Affects logger_handle::LogSpecSubscriber, trc::subscribe_to_specfile

syslog_writer

Enables hostname ^0.3 and libc

textfilter default

Enables regex

trc = async, specfile

Enables tracing and tracing-subscriber

Affects flexi_logger::trc

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.

is-terminal colors

Affects formats::AdaptiveFormat