Discover Packages
github.com/cernops/golbclient
utils
logger
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Aug 17, 2018
License: Apache-2.0, Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Debug(format, v)
Error(format, v)
Fatal(format, v)
Info(format, v)
LOG(level, logToFile, format, v)
LOGC(level, format, v)
SetLevel(level)
SetLevelByString(lvlstr)
Trace(format, v)
Warn(format, v)
Types
Source Files
Documentation
Documentation
¶
Constants
func Debug(format string, v ...interface{})
func Error(format string, v ...interface{})
func Fatal(format string, v ...interface{})
func Info(format string, v ...interface{})
func LOG(level Level, logToFile bool, format string, v ...interface{})
func LOGC(level Level, format string, v ...interface{})
func SetLevel(level Level)
func SetLevelByString(lvlstr string)
func Trace(format string, v ...interface{})
func Warn(format string, v ...interface{})
type Level
ApplicationName : name of the application (possible preffix usage)
func Debug(format string , v ...interface{})
Debug : log with the DEBUG logging level
func Error(format string , v ...interface{})
Error : log with the ERROR logging level
func Fatal(format string , v ...interface{})
Fatal : log with the FATAL logging level
func Info(format string , v ...interface{})
Info : log with the INFO logging level
func LOGC(level Level , format string , v ...interface{})
LOGC : logging function (logs only to the console)
func SetLevel(level Level )
SetLevel : sets the logging level for the application
func SetLevelByString(lvlstr string )
SetLevelByString : sets the logger level based on a string [TRACE, WARN, DEBUG, INFO, ERROR, FATAL]. Will default to INFO if the given parameter is not valid or an error occurs.
func Trace(format string , v ...interface{})
Trace : log with the TRACE logging level
func Warn(format string , v ...interface{})
Warn : log with the WARN logging level
Level : lumber logging levels wrapper
const (
TRACE Level = iota
DEBUG
INFO
WARN
ERROR
FATAL
)
Supported levels of logging
GetLevel : gets the logging level for the application
Source Files
¶
Click to show internal directories.
Click to hide internal directories.