log

package
v0.31.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(level, format string, writer io.Writer)

Configure sets up the logger with the given settings Call this early in your main() function

func ConfigureWithHTTP added in v0.24.0

func ConfigureWithHTTP(level, url, format, stream string)

ConfigureWithHTTP sets up the logger to send JSON-formatted records to the given HTTP endpoint. When a URL is configured stderr output is suppressed.

func Debug

func Debug(msg string, keysAndValues ...any)

func Error

func Error(msg string, keysAndValues ...any)

func Fatal

func Fatal(msg string, keysAndValues ...any)

func GetLogger

func GetLogger() logger.Logger

GetLogger returns the configured logger instance Use this when passing to libraries

func Info

func Info(msg string, keysAndValues ...any)

func Trace

func Trace(msg string, keysAndValues ...any)

Package-level convenience functions

func Warn

func Warn(msg string, keysAndValues ...any)

func With

func With(key string, value any) logger.Logger

func WithError

func WithError(err error) logger.Logger

func WithGroup

func WithGroup(group string) logger.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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