Documentation ¶
Overview ¶
Package log implements the qed/log wrapper that formats the logs in our custom format as well as logging levels.
Index ¶
- Constants
- Variables
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func GetLogger() *log.Logger
- func GetLoggerLevel() string
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func SetLogger(namespace, lv string)
Constants ¶
const ( SILENT = "silent" ERROR = "error" INFO = "info" DEBUG = "debug" )
Log levels constants
Variables ¶
var ( // Fatal is the public log function to write to stdOut and stop execution // Same as Error. Fatal = Error // Panic is the public log function to write to stdOut and stop execution // Same as Error. Panic = Error )
var ( // Fatalf is the public log function with params to write to stdOut and // stop execution. Same as Errorf Fatalf = Errorf // Panicf is the public log function with params to write to stdOut and // stop execution. Same as Errorf Panicf = Errorf )
Functions ¶
func Debug ¶
func Debug(v ...interface{})
Debug is the public log function to write information relative to internal debug information.
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf is the public log function to write information with params relative to internal debug information.
func Error ¶
func Error(v ...interface{})
Error is the public log function to write to stdOut and stop execution.
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf is the public log function with params to write to stdOut and stop execution.
func GetLogger ¶
GetLogger returns a default log.Logger instance. Useful to let third party modules to use the same formatting options that the defined here.
func GetLoggerLevel ¶
func GetLoggerLevel() string
GetLoggerLevel returns the string representation of the log.Logger level.
func Info ¶
func Info(v ...interface{})
Info is the public log function to write information relative to the usage of the qed package.
Types ¶
This section is empty.