Documentation ¶
Overview ¶
Package logger is used to store details of events in the node. Events can be categorized by Debug, Info, Error, Fatal, and Panic.
Index ¶
- func Debugw(msg string, keysAndValues ...interface{})
- func Error(args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Info(args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, values ...interface{})
- func Reconfigure(dir string, lvl zapcore.Level)
- func SetLogger(l *Logger)
- func Sync() error
- func Warn(args ...interface{})
- func WarnIf(err error)
- func Warnw(msg string, keysAndValues ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugw ¶
func Debugw(msg string, keysAndValues ...interface{})
Debugw logs a debug message and any additional given information.
func Errorw ¶
func Errorw(msg string, keysAndValues ...interface{})
Errorw logs an error message, any additional given information, and includes stack trace.
func Fatal ¶
func Fatal(args ...interface{})
Fatal logs a fatal message then exits the application using Sprint.
func Infow ¶
func Infow(msg string, keysAndValues ...interface{})
Infow logs an info message and any additional given information.
func Panicf ¶
func Panicf(format string, values ...interface{})
Panicf formats and then logs the message before panicking.
func Reconfigure ¶
Reconfigure creates a new log file at the configured directory with the given LogLevel.
Types ¶
Click to show internal directories.
Click to hide internal directories.