Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoLogger ¶
type GoLogger struct {
// contains filtered or unexported fields
}
GoLogger implements Logger. It uses stdlib golang log under the hood.
func NewGoLogger ¶
func NewGoLogger() *GoLogger
NewGoLogger constructs GoLogger which prints to stdout.
type Logger ¶
type Logger interface { Errorf(arg0 string, args ...interface{}) Tracef(arg0 string, args ...interface{}) }
Logger is an interface of some logger. TODO usually i would use struct logger. But it is much more complex abstraction which is out of scope for now.
type NoopLogger ¶
type NoopLogger struct { }
NoopLogger implements Logger. It do nothing.
func (NoopLogger) Errorf ¶
func (NoopLogger) Errorf(arg0 string, args ...interface{})
Errorf implements Logger.Errorf.
func (NoopLogger) Tracef ¶
func (NoopLogger) Tracef(arg0 string, args ...interface{})
Tracef implements Logger.Tracef.
Click to show internal directories.
Click to hide internal directories.