logger

package
v0.2.0-beta-1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug logs a message with debug level

func Error

func Error(args ...interface{})

Error logs a message with error level

func Fatal

func Fatal(args ...interface{})

Fatal logs a message with fatal level and then calls os.Exit(1)

func Info

func Info(args ...interface{})

Info logs a message with info level

func Panic

func Panic(args ...interface{})

Panic logs a message with panic level and then calls panic()

func SetLogLevel

func SetLogLevel(level string)

SetLogLevel sets the log level for the logger

func Warn

func Warn(args ...interface{})

Warn logs a message with warning level

func WriteToFile

func WriteToFile(fileName string) error

WriteToFile writes the log output to a file

func WriteToFileAndConsole

func WriteToFileAndConsole(fileName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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