Crate libpt_log

Source
Expand description

§A specialized Logger for pt

This crate is part of pt, but can also be used as a standalone module.

For the library version, only the basic tracing is used, so that it is possible for the end user to use the tracing frontend they desire.

I did decide to create a Logger struct. This struct is mainly intended to be used with the python module of pt, but is still just as usable in other contexts. You can use this struct when use of the macros is not possible, but the macros should generally be preferred.

§Technologies used for logging:

Re-exports§

pub use tracing;

Modules§

error
Error module for pt-log

Macros§

debug
Constructs an event at the debug level.
error
Constructs an event at the error level.
info
Constructs an event at the info level.
trace
Constructs an event at the trace level.
warn
Constructs an event at the warn level.

Structs§

Level
Describes the level of verbosity of a span or event.
Logger
Logger for libpt
LoggerBuilder
Builder for a well configured Logger

Constants§

DEFAULT_LOG_DIR
The path where logs are stored when no path is given.
DEFAULT_LOG_LEVEL
The log level used when none is specified