log

package
v0.0.0-...-f266d1f Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(msg string) string

Clean sanitizes a log message to be lower case and removes newline characters.

func Debug

func Debug(msg string, kv ...interface{})

Debug logs a debug message. Refer to: https://godoc.org/go.uber.org/zap for more details.

func Error

func Error(msg string, kv ...interface{})

Error logs an error message. Refer to: https://godoc.org/go.uber.org/zap for more details.

func Fatal

func Fatal(msg string, kv ...interface{})

Fatal logs a fatal message. Refer to: https://godoc.org/go.uber.org/zap for more details.

func GetLevel

func GetLevel() zapcore.Level

GetLevel returns the current log level.

func Info

func Info(msg string, kv ...interface{})

Info logs an info message. Refer to: https://godoc.org/go.uber.org/zap for more details.

func Panic

func Panic(msg string, kv ...interface{})

Panic logs a panic message. Refer to: https://godoc.org/go.uber.org/zap for more details.

func SetLevel

func SetLevel(level string) error

SetLevel sets the log level by specifying a string which can be any of: ["DEBUG", "INFO", "WARNING", "ERROR", "PANIC", "FATAL"], case-insensitive.

func Warn

func Warn(msg string, kv ...interface{})

Warn logs a warning message. Refer to: https://godoc.org/go.uber.org/zap for more details.

Types

This section is empty.

Jump to

Keyboard shortcuts

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