Documentation ¶ Index ¶ func New(options ...Option) logs.Logger type Logger func (l *Logger) SetLevel(lvl string) error func (l *Logger) Sub(name string) logs.Logger type Option func WithLevel(level logrus.Level) Option func WithName(name string) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(options ...Option) logs.Logger New . Types ¶ type Logger ¶ type Logger struct { *logrus.Entry // contains filtered or unexported fields } Logger . func (*Logger) SetLevel ¶ func (l *Logger) SetLevel(lvl string) error SetLevel . func (*Logger) Sub ¶ func (l *Logger) Sub(name string) logs.Logger Sub . type Option ¶ type Option interface { // contains filtered or unexported methods } Option . func WithLevel ¶ func WithLevel(level logrus.Level) Option WithLevel . func WithName ¶ func WithName(name string) Option WithName . Source Files ¶ View all Source files log.go Click to show internal directories. Click to hide internal directories.