Structured logging

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

For Rust, these methods are available under the log module, for example log::info(). For Swift, they are prefixed with Log, for example Suborbital.LogInfo() For TypeScript/AssemblyScript, they are prefixed with log, for example import { logInfo } from '@suborbital/suborbital'

The following namespace methods are available:

Info

Logs the message with the 'info' level

pub fn info(msg: &str)
function logInfo(msg: string): void
public func LogInfo(msg: String)

Warn

Logs the message with the 'warn' level

pub fn warn(msg: &str)
function logWarn(msg: string): void
public func LogWarn(msg: String)

Error

Logs the message with the 'err' level

pub fn error(msg: &str)
function logErr(msg: string): void
public func LogErr(msg: String)