Documentation ¶
Overview ¶
Package redlog provides a Redis compatible logger.
http://build47.com/redis-log-format-levels/
Index ¶
- Variables
- func RedisLogColorizer(wr io.Writer) io.Writer
- type Logger
- func (l *Logger) App() byte
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Debugln(args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorln(args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalln(args ...interface{})
- func (l *Logger) GoLogger() *log.Logger
- func (l *Logger) Notice(args ...interface{})
- func (l *Logger) Noticef(format string, args ...interface{})
- func (l *Logger) Noticeln(args ...interface{})
- func (l *Logger) Panic(args ...interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Panicln(args ...interface{})
- func (l *Logger) Print(args ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Println(args ...interface{})
- func (l *Logger) SetApp(app byte)
- func (l *Logger) Verb(args ...interface{})
- func (l *Logger) Verbf(format string, args ...interface{})
- func (l *Logger) Verbln(args ...interface{})
- func (l *Logger) Warning(args ...interface{})
- func (l *Logger) Warningf(format string, args ...interface{})
- func (l *Logger) Warningln(args ...interface{})
- func (l *Logger) Write(p []byte) (int, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{ Level: 2, Filter: nil, PostFilter: nil, App: 'M', TimeFormat: "02 Jan 2006 15:04:05.000", }
DefaultOptions ...
HashicorpRaftFilter is used as a filter to convert a log message from the hashicorp/raft package into redlog structured message.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger ...
func (*Logger) GoLogger ¶
GoLogger returns a standard Go log.Logger which when used, will print in the Redlog format.
Click to show internal directories.
Click to hide internal directories.