Skip to main content

Crate ic_mple_log

Crate ic_mple_log 

Source
Expand description

Implementation of common Rust log usable by IC canisters. See the documentation for Logger about how to initialize and use log.

This crate also provides a canister trait [canister::LogCanister] (use canister feature to enable), which simplifies adding logging configuration to your canister.

Modules§

types
writer

Structs§

Builder
Builder acts as builder for initializing a Logger.
LogSettings
Logger settings.
Logger
The logger.
LoggerConfigHandle
A handle to the runtime configuration of the logger

Functions§

init_log
Builds and initialize a logger based on the settings
take_memory_records
Take the log memory records for the circular buffer.