log

package
v0.0.0-...-2c99a81 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

Debug logs a message at level Debug on the wrapped logger.

func Debugf

func Debugf(format string, v ...interface{})

Debugf logs a message at level Debug on the wrapped logger.

func Error

func Error(v ...interface{})

Error logs a message at level Error on the wrapped logger.

func Errorf

func Errorf(format string, v ...interface{})

Errorf logs a message at level Error on the wrapped logger.

func Fatal

func Fatal(v ...interface{})

Fatal logs a message at level Fatal on the wrapped logger then the process will exit with status set to 1.

func Fatalf

func Fatalf(format string, v ...interface{})

Fatalf logs a message at level Fatal on the wrapped logger then the process will exit with status set to 1.

func GetLogLevelAsString

func GetLogLevelAsString() string

GetLogLevelAsString gets current log's level as a level string.

func Info

func Info(v ...interface{})

Info logs a message at level Info on the wrapped logger.

func Infof

func Infof(format string, v ...interface{})

Infof logs a message at level Info on the wrapped logger.

func SetLevelByString

func SetLevelByString(level string)

SetLevelByString sets log's level by a level string.

func SetOutputByName

func SetOutputByName(filename string)

SetOutputByName sets the filename for the log.

func Warn

func Warn(v ...interface{})

Warn logs a message at level Warn on the wrapped logger.

func Warnf

func Warnf(format string, v ...interface{})

Warnf logs a message at level Warn on the wrapped logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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