std.log

Log lines on standard error, with the time and a level:

import std.log

log.info("listening on port 8080")
// 2026-10-15T08:30:01.123Z INFO listening on port 8080

Functions

fn info

pub fn info(message: string)

fn warn

pub fn warn(message: string)

fn error

pub fn error(message: string)