package
Version:
v0.0.0-...-ec5fd6c
Opens a new window with list of versions in this module.
Published: May 8, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Debugf(format string, a ...interface{})
Debugf prints logging if logging level >= debug
Errorf prints logging if logging level >= error
func Panicf(format string, a ...interface{})
Panicf prints logging plus stack trace. This should be used only for unrecoverble error
func SetLogFile(filename string)
SetLogFile sets logging file
func SetLogLevel(levelStr string)
SetLogLevel sets logging level
func SetLogStderr(enable bool)
SetLogStderr sets flag for logging stderr output
func Verbosef(format string, a ...interface{})
Verbosef prints logging if logging level >= verbose
Level type
const (
PanicLevel Level = iota
ErrorLevel
VerboseLevel
DebugLevel
MaxLevel
UnknownLevel
)
PanicLevel...MaxLevel indicates the logging level
func GetLoggingLevel() Level
GetLoggingLevel gets current logging level
Source Files
¶
Click to show internal directories.
Click to hide internal directories.