Documentation ¶
Index ¶
- Variables
- func CanLogHttpRequest(log Logger) bool
- func DefaultLogLevel(lvl string) string
- type ConsoleLogger
- func (n *ConsoleLogger) Debug(args ...interface{})
- func (n *ConsoleLogger) Error(args ...interface{})
- func (n *ConsoleLogger) Info(args ...interface{})
- func (n *ConsoleLogger) Log(level logrus.Level, args ...interface{})
- func (n *ConsoleLogger) Trace(args ...interface{})
- func (n *ConsoleLogger) Warn(args ...interface{})
- func (n *ConsoleLogger) WithLogger() *logrus.Logger
- type Logger
- type NoopLogger
- func (NoopLogger) Debug(args ...interface{})
- func (NoopLogger) Error(args ...interface{})
- func (NoopLogger) Info(args ...interface{})
- func (NoopLogger) Log(level logrus.Level, args ...interface{})
- func (NoopLogger) Trace(args ...interface{})
- func (NoopLogger) Warn(args ...interface{})
- func (n NoopLogger) WithLogger() *logrus.Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var InfoLevel = "info"
Functions ¶
func CanLogHttpRequest ¶
func DefaultLogLevel ¶
Types ¶
type ConsoleLogger ¶
func NewConsoleLogger ¶
func NewConsoleLogger(cfg config.LoggerConfiguration) (*ConsoleLogger, error)
func (*ConsoleLogger) Debug ¶
func (n *ConsoleLogger) Debug(args ...interface{})
func (*ConsoleLogger) Error ¶
func (n *ConsoleLogger) Error(args ...interface{})
func (*ConsoleLogger) Info ¶
func (n *ConsoleLogger) Info(args ...interface{})
func (*ConsoleLogger) Log ¶
func (n *ConsoleLogger) Log(level logrus.Level, args ...interface{})
func (*ConsoleLogger) Trace ¶
func (n *ConsoleLogger) Trace(args ...interface{})
func (*ConsoleLogger) Warn ¶
func (n *ConsoleLogger) Warn(args ...interface{})
func (*ConsoleLogger) WithLogger ¶
func (n *ConsoleLogger) WithLogger() *logrus.Logger
type Logger ¶
type Logger interface { Log(level logrus.Level, args ...interface{}) Info(args ...interface{}) Debug(args ...interface{}) Warn(args ...interface{}) Trace(args ...interface{}) Error(args ...interface{}) WithLogger() *logrus.Logger }
func NewNoopLogger ¶
func NewNoopLogger() Logger
type NoopLogger ¶
func (NoopLogger) Debug ¶
func (NoopLogger) Debug(args ...interface{})
func (NoopLogger) Error ¶
func (NoopLogger) Error(args ...interface{})
func (NoopLogger) Info ¶
func (NoopLogger) Info(args ...interface{})
func (NoopLogger) Log ¶
func (NoopLogger) Log(level logrus.Level, args ...interface{})
func (NoopLogger) Trace ¶
func (NoopLogger) Trace(args ...interface{})
func (NoopLogger) Warn ¶
func (NoopLogger) Warn(args ...interface{})
func (NoopLogger) WithLogger ¶
func (n NoopLogger) WithLogger() *logrus.Logger
Click to show internal directories.
Click to hide internal directories.