log

package
v1.823.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package log is the leveled logging surface for the ai runtime. Records emit through luxfi/log to structured stderr, where the unified cloud process (HIP-0106) has its ZAP/o11y pipeline collect them.

Info/Warning/Warn/Error take a leading format value plus optional args: a string containing a format verb is used as a fmt format string; any other leading value, or trailing args when the string has no verb, are rendered and appended as " %v" fields. That formatting contract lets the call sites read and format exactly as before.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(f interface{}, v ...interface{})

Error logs at error level.

func Info

func Info(f interface{}, v ...interface{})

Info logs at info level.

func Reset

func Reset()

Reset restores the default (info) log level.

func SetLogger

func SetLogger(adapter string, config ...string) error

SetLogger applies the process log level from a JSON config's optional "level" field. The runtime emits structured records to stderr for the platform to collect (HIP-0106); the historical adapter names ("file", "console") denote that single sink and carry no per-adapter wiring.

func Warn

func Warn(f interface{}, v ...interface{})

Warn logs at warn level.

func Warning

func Warning(f interface{}, v ...interface{})

Warning logs at warn level.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL