viva_aion/log

VIVA Aion Logging - Structured logging for deterministic world generation

Usage

import viva_aion/log

// Initialize once at startup
log.configure()

// Log operations
log.generator("New world seed: 0x1A2B3C")
log.pathfinding("Path found: length=42 cost=15.5")
log.bounce("Entropy transfer: 1.45 bits -> new seed")

Log Levels

Values

pub fn bounce(details: String) -> Nil

Log Big Bounce / Cosmology events

pub fn configure() -> Nil

Initialize logging with pretty Gleam output Call once at application startup

pub fn debug(tag: String, msg: String) -> Nil

Debug level log

pub fn disable_debug() -> Nil

Disable debug logging (Info and above only)

pub fn dream(details: String) -> Nil

Log Memory/Dream consolidation (DRE scoring)

pub fn enable_debug() -> Nil

Enable debug logging

pub fn error(tag: String, msg: String) -> Nil

Error level log

pub fn fmt_float(f: Float) -> String

Format float with 4 decimal places

pub fn fmt_int(i: Int) -> String

Format int

pub fn fmt_pos(x: Int, y: Int) -> String

Format position (x, y)

pub fn fmt_seed(s: Int) -> String

Format seed

pub fn generator(details: String) -> Nil

Log world generation events

pub fn info(tag: String, msg: String) -> Nil

Info level log

pub fn pathfinding(details: String) -> Nil

Log pathfinding operations (BFS, A*, Retrocausal)

pub fn rng(details: String) -> Nil

Log RNG/Seed operations

pub fn set_level(level: logging.LogLevel) -> Nil

Set minimum log level

pub fn warn(tag: String, msg: String) -> Nil

Warning level log

Search Document