log

package
v1.833.192 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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