grafbase_sdk/host_io/logger.rs
1//! Logging utilities and abstractions.
2//!
3//! This module provides a few different loggers. The system logger is always enabled, and
4//! the guest can call it by using the macros in the [log] module. The guest will pick the
5//! log filter from the gateway log filter setting. If you want to define a separate filter
6//! for extensions, you can do so by passing the specific level as `extension=level` to the
7//! log filter.
8//!
9//! The [FileLogger] is a special logger that writes logs to files with configurable rotation
10//! policies. The user decides the serialization format for the logs.
11
12pub use log;
13mod file;
14mod system;
15
16pub use file::{FileLogger, LogRotation};
17pub(crate) use system::HostLogger;