logging

package
v0.0.0-...-efc3c05 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 11

Documentation

Overview

Package logging holds the code to have a uniform logging style for all output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func Error1

func Error1(err error)

Error1 prints an Error level log for an error

func ErrorAndPanic

func ErrorAndPanic(msg string, args ...interface{})

ErrorAndPanic is now deprecated. It is equivalent to Panic.

func Fatal

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

func Info

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

func InfoEnabled

func InfoEnabled() bool

InfoEnabled returns true if Info log level is enabled.

func Init

func Init(conf *viper.Viper)

func Init1

func Init1(logLevel string, logTarget string)

Init1 initialises the logger without a Viper object

func Panic

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

func SetLogLevel

func SetLogLevel(logLevel string)

func Trace

func Trace(msg string, args ...interface{})

func Warn

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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