log

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package log provides a convenient global logger interface that wraps the core logging functionality. It offers simplified access to logging operations without requiring explicit logger instantiation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug() logging.Event

Debug returns a debug level event

func Error

func Error() logging.Event

Error returns an error level event

func F

func F(key string, value interface{}) logging.Field

F is a helper function to create fields

func Fatal

func Fatal() logging.Event

Fatal returns a fatal level event

func GetLevel

func GetLevel() logging.Level

GetLevel returns the current log level

func Info

func Info() logging.Event

Info returns an info level event

func Logger

func Logger() logging.Adapter

Logger returns the current global logger adapter

func Panic

func Panic() logging.Event

Panic returns a panic level event

func Printf

func Printf(format string, v ...interface{})

Printf logs a formatted message

func SetLevel

func SetLevel(level logging.Level)

SetLevel sets the log level for the global logger

func Trace

func Trace() logging.Event

Trace returns a trace level event

func Warn

func Warn() logging.Event

Warn returns a warning level event

Types

This section is empty.

Jump to

Keyboard shortcuts

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