services/logger/logger
Logger service — structured logging with levels, categories, and dual output (JSON-lines to file + human-readable to stdout).
The logger process is registered as agent_logger so any module in any
process can call logger:info(...) without threading a reference.
Log levels, in increasing severity: Debug < Info < Warn < Error
Categories mirror the project architecture: logging.App | logging.Core | logging.Services | logging.Plugins | logging.Tools | logging.Gateways | logging.Hooks | logging.Config
Types
Values
pub fn configure(log_path: String, stdout_enabled: Bool) -> Nil
Reconfigure at runtime (e.g., after log rotation).
pub fn debug(
cat: logging.LogCategory,
mod: String,
msg: String,
) -> Nil
pub fn error(
cat: logging.LogCategory,
mod: String,
msg: String,
) -> Nil
pub fn info(
cat: logging.LogCategory,
mod: String,
msg: String,
) -> Nil
pub fn service() -> service.Service
pub fn warn(
cat: logging.LogCategory,
mod: String,
msg: String,
) -> Nil