Expand description
Configure tracing subscribers for Arti
Modules§
- time 🔒
- Support logging the time with different levels of precision.
Structs§
- LogGuards
- Opaque structure that gets dropped when the program is shutting down,
after logs are no longer needed. The
Drop
impl flushes buffered messages. - Logfile
Config - Configuration information for an (optionally rotating) logfile.
- Logfile
Config Builder - Builder for
LogfileConfig
. - Logfile
List 🔒Config Builder - Wrapper struct to help derive_builder find the right types and methods
- Logging
Config - Structure to hold our logging configuration options
- Logging
Config Builder - Builder for
LoggingConfig
.
Enums§
- LogRotation
- How often to rotate a log file
Functions§
- console_
layer 🔒 - Try to construct a tracing [
Layer
] for logging to stdout. - default_
console_ 🔒filter - Return a default tracing filter value for
logging.console
. - filt_
from_ 🔒opt_ str - As filt_from_str_verbose, but treat an absent filter (or an empty string) as None.
- filt_
from_ 🔒str_ verbose - As [
Targets::from_str
], but wrapped in ananyhow::Result
. - install_
panic_ 🔒handler - Configure a panic handler to send everything to tracing, in addition to our default panic behavior.
- journald_
layer 🔒journald
- Try to construct a tracing [
Layer
] for logging to journald, if one is configured. - logfile_
layer 🔒 - Try to construct a non-blocking tracing [
Layer
] for writing data to an optionally rotating logfile. - logfile_
layers 🔒 - Try to construct a tracing [
Layer
] for all of the configured logfiles. - setup_
logging experimental-api
- Set up logging.
Type Aliases§
- Logfile
List 🔒Config - Local type alias, mostly helpful for derive_builder to DTRT