Skip to main content

Structured logging

Your Runnable code can log to Atmo's structured output using the logging methods.

In Rust these methods are available under the log module:

# Use the "log" module
use suborbital::log;

# Invoke the "Info" method
log::info(…)

The following namespace methods are available:

Info​

Logs the message with the 'info' level:

Warn​

Logs the message with the 'warn' level:

Error​

Logs the message with the 'err' level:

Debug​

Logs the message with the 'debug' level: