logger

package
v0.0.0-...-3c640c9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

Debug logs a debug message with the given fields

func Error

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

Error logs a debug message with the given fields

func Fatal

func Fatal(template string, args ...interface{})

Fatal logs a message than calls os.Exit(1)

func Info

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

Info logs a debug message with the given fields

func Init

func Init()

Init initializes a thread-safe singleton logger This would be called from a main method when the application starts up This function would ideally, take zap configuration, but is left out in favor of simplicity using the example logger.

func SetLevel

func SetLevel(level zapcore.Level)

func Warn

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

Warn logs a debug message with the given fields

Types

This section is empty.

Jump to

Keyboard shortcuts

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