log

package
v0.0.0-...-3568c51 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string)

Error used for errors that should definitely be noted. Commonly used for hooks to send errors to an error tracking service

func ErrorWithValues

func ErrorWithValues(msg string, val map[string]interface{})

ErrorWithValues log the Error entries happening inside the code It also print the extra key values pairs

func Errorf

func Errorf(msg string, err ...interface{})

Errorf used for errors that should definitely be noted. Commonly used for hooks to send errors to an error tracking service.

func Fatal

func Fatal(msg string)

Fatal Logs first and then calls `logger.Exit(1)` logging level is set to Panic.

func Fatalf

func Fatalf(msg string, err ...interface{})

Fatalf Logs first and then calls `logger.Exit(1)` logging level is set to Panic.

func Info

func Info(msg string)

Info log the General operational entries about what's going on inside the application

func InfoWithValues

func InfoWithValues(msg string, val map[string]interface{})

InfoWithValues log the General operational entries about what's going on inside the application It also print the extra key values pairs

func Infof

func Infof(msg string, val ...interface{})

Infof log the General operational entries about what's going on inside the application

func Warn

func Warn(msg string)

Warn log the Non-critical entries that deserve eyes.

func Warnf

func Warnf(msg string, val ...interface{})

Warnf log the Non-critical entries that deserve eyes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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