Skip to main content

Crate winston

Crate winston 

Source

Re-exports§

pub use logform as format;

Modules§

transports

Macros§

create_level_macros
create_log_methods
log
meta

Structs§

LogQuery
Logger
LoggerOptions
LoggerTransport

Enums§

BackpressureStrategy

Functions§

add_transport
Add a transport to the global logger and return a handle for later removal.
close
configure
flush
init
Initialize the global logger. Must be called once before using other functions.
is_initialized
Check if the global logger has been initialized.
is_level_enabled_fast
Lock-free level check against the global logger. Returns true if the global logger is not yet initialized (let the later log() call handle the panic) or if the level passes the cached filter.
log
query
remove_transport
Remove a transport by its handle. Returns true if the transport was found and removed, false otherwise.
try_log
Try to log without panicking if not initialized. Returns false if logger not initialized.