Documentation ¶
Index ¶
- Constants
- type FuncOpts
- func WithDispatcher(dispatcher map[string]io.Writer) FuncOpts
- func WithFormatter(formatter logrus.Formatter) FuncOpts
- func WithLevel(level string) FuncOpts
- func WithLevels(levels []string) FuncOpts
- func WithReportCaller(caller bool) FuncOpts
- func WithSrvName(name string) FuncOpts
- func WithWriter(writer io.Writer) FuncOpts
- type Log
- type Logger
- type RawJSONFormatter
Constants ¶
View Source
const ( PanicLevel uint = iota FatalLevel ErrorLevel WarnLevel InfoLevel DebugLevel TraceLevel )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncOpts ¶
type FuncOpts func(*logger)
func WithFormatter ¶
func WithLevels ¶
func WithReportCaller ¶
func WithSrvName ¶
func WithWriter ¶
type RawJSONFormatter ¶ added in v1.1.0
type RawJSONFormatter struct {
*logrus.JSONFormatter
}
Click to show internal directories.
Click to hide internal directories.