Expand description
Library for aggregating logs and sending to logging service. Contains implementations for Coralogix and (for wasm) console.log
Macros§
- log
- The
log!
macro can be used to create structured log entries for later use by Logger.send The first two parameters are fixed:
Structs§
- Console
Logger - ConsoleLogger sends output to the javascript console (wasm32 targets) or stdout (println! for
non-wasm32 targets)
Logger that sends all messages (on wasm32 targets) to
console.log.
On Cloudflare workers, console.log output is
available in the terminal for
wrangler dev
andwrangler preview
modes. To simplify debugging and testing, ConsoleLogger on non-wasm32 targets is implemented to send output to stdout using println! - Coralogix
Config - Configuration parameters for Coralogix service
- Coralogix
Logger - Implementation of Logger for Coralogix
- LogEntry
- LogEntry, usually created with the [
log!
] macro. - LogQueue
- Queue of log entries to be sent to Logger
Enums§
- Severity
- Severity level
Traits§
- Logger
- Trait for logging service that receives log messages
Type Aliases§
- LogLevel
- Logging level, alias for Severity