Skip to main content

Module wasi_logging

Module wasi_logging 

Source
Expand description

Structured logging plugin for WebAssembly components.

This plugin implements the wasi:logging/logging@0.1.0-draft interface, providing components with structured logging capabilities. It bridges component log messages to the host’s tracing infrastructure.

§Features

  • Structured logging with multiple log levels
  • Integration with Rust’s tracing ecosystem
  • Contextual logging with component identification
  • Efficient log message routing

§Log Levels

The plugin supports the standard WASI logging levels:

  • Trace: Detailed diagnostic information
  • Debug: Debug-level messages
  • Info: General informational messages
  • Warn: Warning messages
  • Error: Error messages

§Usage

Components can use the WASI logging interface to emit structured log messages that will be processed by the host’s logging infrastructure.

Structs§

WasiLogging
WASI logging plugin that provides structured logging capabilities.