Documentation ¶
Overview ¶
Package log implements the logging for the bolt driver
There are 3 logging levels - trace, info and error. Setting trace would also set info and error logs. You can use the SetLevel("trace") to set trace logging, for example.
Index ¶
- Variables
- func Error(args ...interface{})
- func Errorf(msg string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(msg string, args ...interface{})
- func Info(args ...interface{})
- func Infof(msg string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(msg string, args ...interface{})
- func SetLevel(levelStr string)
- func Trace(args ...interface{})
- func Tracef(msg string, args ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorLog is the logger for error logging. This can be manually overridden. ErrorLog = l.New(os.Stderr, "[BOLT][ERROR]", l.LstdFlags) // InfoLog is the logger for info logging. This can be manually overridden. InfoLog = l.New(os.Stderr, "[BOLT][INFO]", l.LstdFlags) // TraceLog is the logger for trace logging. This can be manually overridden. TraceLog = l.New(os.Stderr, "[BOLT][TRACE]", l.LstdFlags) )
Functions ¶
func Errorf ¶
func Errorf(msg string, args ...interface{})
Errorf writes an error log in the format of Printf
func Fatalf ¶
func Fatalf(msg string, args ...interface{})
Fatalf writes an error log in the format of Fatalf
func Infof ¶
func Infof(msg string, args ...interface{})
Infof writes an info log in the format of Printf
func Panicf ¶
func Panicf(msg string, args ...interface{})
Panicf writes an error log in the format of Panicf
Types ¶
Click to show internal directories.
Click to hide internal directories.