Documentation ¶
Index ¶
- func Debug(pkg string, args ...interface{})
- func Debugf(pkg, format string, args ...interface{})
- func Error(err error, pkg string, args ...interface{})
- func Errorf(err error, pkg, format string, args ...interface{})
- func Fatal(err error, pkg string, args ...interface{})
- func Fatalf(err error, pkg, format string, args ...interface{})
- func Info(pkg string, args ...interface{})
- func Infof(pkg, format string, args ...interface{})
- func Initialize(s string, c string)
- func Panic(err error, pkg string, args ...interface{})
- func Panicf(err error, pkg, format string, args ...interface{})
- func SetCustomFields(f Fields)
- func Warn(err error, pkg string, args ...interface{})
- func Warnf(err error, pkg, format string, args ...interface{})
- type Fields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(pkg, format string, args ...interface{})
Debugf is a debug level formatted log message
func Fatal ¶
Fatal is a fatal level error log message with optional annotation that calls os.Exit(1)
func Fatalf ¶
Fatalf is a fatal level formatted error log message with optional annotation that calls os.Exit(1)
func Infof ¶
func Infof(pkg, format string, args ...interface{})
Infof is an info level formatted log message
func Initialize ¶
Initialize sets up a logger with a specified service and coin that will be added to all logs
func Panicf ¶
Panicf is a panic level formatted error log message with optional annotation that calls panic()
func SetCustomFields ¶
func SetCustomFields(f Fields)
SetCustomFields will populate customFields to be added to the default log fields (thread safe writes)
Types ¶
Click to show internal directories.
Click to hide internal directories.