noop

package
Version: v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
}

Logger doesn't log anything

func NewLogger

func NewLogger() *Logger

NewLogger creates a new Logger

func (*Logger) Debug

func (l *Logger) Debug(message string)

Debug logs a DEBUG message

func (*Logger) Debugf

func (l *Logger) Debugf(message string, props log.Props)

Debugf logs a DEBUG message

func (*Logger) Error

func (l *Logger) Error(err error)

Error logs a ERROR message

func (*Logger) Errorf

func (l *Logger) Errorf(message string, props log.Props)

Errorf logs a ERROR message

func (*Logger) Info

func (l *Logger) Info(message string)

Info logs a INFO message

func (*Logger) Infof

func (l *Logger) Infof(message string, props log.Props)

Infof logs a INFO message

func (*Logger) IsEnabled

func (l *Logger) IsEnabled(level log.Level) bool

IsEnabled returns true if given level is enabled

func (*Logger) New

func (l *Logger) New() log.Logger

New returns a copy of current logger with empty context

func (*Logger) SetLevel

func (l *Logger) SetLevel(level log.Level)

SetLevel increases/decreases current log level

func (*Logger) SetProperty

func (l *Logger) SetProperty(key string, value interface{})

SetProperty with given key:value into current logger context

func (*Logger) Warn

func (l *Logger) Warn(message string)

Warn logs a WARN message

func (*Logger) Warnf

func (l *Logger) Warnf(message string, props log.Props)

Warnf logs a WARN message

func (*Logger) Write

func (l *Logger) Write(p []byte) (int, error)

Write writes len(p) bytes from p to the underlying data stream.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL