logs

package
v1.108.17 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package logs writes visor's leveled log lines.

It exists because the beego rip rewrote every beego logs import to point here without anything being put here. Twenty-two call sites across autoscaler, billing, telemetry, task and controllers compiled against a package that was never written, so visor did not build at all — at any pin, for as long as the rewrite has been in the tree.

One shape: a format string and its arguments. beego's logs took an interface{} first argument and reached for Sprintf only when arguments followed, so logs.Info("failed: ", err) produced a line ending in %!(EXTRA *errors.errorString=…) rather than the error. Requiring a format makes that shape a compile-time fact instead of a runtime surprise.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(format string, v ...any)

func Info

func Info(format string, v ...any)

func Warning

func Warning(format string, v ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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