Debugging, Logging
Help you figure out what is going on with your code such as logging, tracing, or assertions.
Tracing
Recipe | Crates | Categories |
---|---|---|
Tracing initialization | ||
Basic tracing | ||
Combine layers | ||
Configure a custom event formatter | ||
Events | ||
Spans | ||
Add tracing spans to functions | ||
Related crates |
TODO
Logging
Recipe | Crates | Categories |
---|---|---|
Log a debug message to the console | ||
Log an error message to the console | ||
Log to stdout instead of stderr | ||
Log messages with a custom logger | ||
Log to the Unix syslog |
TODO
Log Configuration
Recipe | Crates | Categories |
---|---|---|
Enable log levels per module | ||
Use a custom environment variable to set up logging | ||
Include a timestamp in log messages | ||
Log messages to a custom location |
TODO
Alternatives
Recipe | Crates | Categories |
---|---|---|
Older alternatives to tracing | ||
log | ||
slog | ||
log4rs | ||
env_logger | ||
Other frameworks | ||
OpenTelemetry | ||
OpenObserve |
TODO
Diagnostic functions
Recipe | Crates | Categories |
---|---|---|
Get the type name of the pointed-to value |
TODO
TODO