log

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHook added in v0.0.26

func AddHook(hook Hook) int32

AddHook adds a hook to the logger. The hook will be called with the level and message of the log entry. This function returns a unique ID for the hook, which can be used to remove the hook later.

func Debug

func Debug(format string, args ...interface{})

func Error

func Error(format string, args ...interface{})

func Info

func Info(format string, args ...interface{})

func RemoveHook added in v0.0.26

func RemoveHook(id int32)

RemoveHook removes a hook from the logger. The hook will no longer be called with the level and message of the log entry.

func SetLevel

func SetLevel(level logrus.Level)

func Trace

func Trace(format string, args ...interface{})

func Warn

func Warn(format string, args ...interface{})

Types

type Hook added in v0.0.26

type Hook func(logrus.Level, string)

Jump to

Keyboard shortcuts

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