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:
tracing
: base logging cratetracing_appender
: Used to log to filestracing_subscriber
: Used to do actual logging, formatting, to stdout
Re-exports§
pub use tracing;
Modules§
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
- Logger
Builder - 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