Expand description
Logging utilities
Macros§
Structs§
- Channel
Writer - Wrapper structure over a smol channel sender to use as a logs writer for the interactive shell.
- Event
Formatter - Formats
tracingevents for output, with support for custom log levels. - Event
Time Formatter - Formats event timestamps as
HH:MM:SSfortracingoutput. - Level
Formatter 🔒 - A formatter for the custom
Level - Target
Filter - A
tracing-subscriberlayer that filters events based on their target.
Enums§
- Level
- A custom log level type.
Statics§
- TERMINAL_
LAYER_ 🔒HANDLE - Global singleton holding the tracing terminal layer handle.
Traits§
- Terminal
Writer - Trait definitions for cleaner code.
Functions§
- file_
field_ formatter - Formats event fields for file logging, hiding level fields like
verbose. - set_
terminal_ writer - Auxiliary function to set the tracing terminal layer writer.
- setup_
logging - Helper for setting up logging for bins.
- setup_
test_ logger - Helper for setting up terminal logging for tests.
- terminal_
field_ formatter - Formats event fields for terminal output, hiding level fields like
verbose.