grafbase-sdk 0.23.1

An SDK to implement extensions for the Grafbase Gateway
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Logging utilities and abstractions.
//!
//! This module provides a few different loggers. The system logger is always enabled, and
//! the guest can call it by using the macros in the [log] module. The guest will pick the
//! log filter from the gateway log filter setting. If you want to define a separate filter
//! for extensions, you can do so by passing the specific level as `extension=level` to the
//! log filter.
//!
//! The [FileLogger] is a special logger that writes logs to files with configurable rotation
//! policies. The user decides the serialization format for the logs.

pub use log;
mod file;
mod system;

pub use file::{FileLogger, LogRotation};
pub(crate) use system::HostLogger;