Documentation ¶
Index ¶
- type Ditch
- func (w Ditch) Context(name string, params ...interface{}) Logger
- func (w Ditch) Debug(msg string, params ...interface{})
- func (w Ditch) Error(msg string, params ...interface{})
- func (w Ditch) Info(msg string, params ...interface{})
- func (w Ditch) Warning(msg string, params ...interface{})
- func (w Ditch) Write(b []byte) (int, error)
- type Logger
- type NonDebugWriter
- type Writer
- func (w Writer) Context(name string, params ...interface{}) Logger
- func (w Writer) Debug(msg string, params ...interface{})
- func (w Writer) Error(msg string, params ...interface{})
- func (w Writer) Info(msg string, params ...interface{})
- func (w Writer) Warning(msg string, params ...interface{})
- func (w Writer) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ditch ¶
type Ditch struct{}
Ditch ditch all logs
type Logger ¶
type Logger interface { Context(name string, params ...interface{}) Logger Write(b []byte) (int, error) Info(msg string, params ...interface{}) Debug(msg string, params ...interface{}) Warning(msg string, params ...interface{}) Error(msg string, params ...interface{}) }
Logger represents a logger
type NonDebugWriter ¶
type NonDebugWriter struct {
Writer
}
NonDebugWriter will write logs to the underlaying writer
func NewNonDebugWriter ¶
func NewNonDebugWriter(context string, w io.Writer) NonDebugWriter
NewNonDebugWriter creates a new Writer with debug output disabled
func (NonDebugWriter) Context ¶
func (w NonDebugWriter) Context(name string, params ...interface{}) Logger
Context build a new Sub context
func (NonDebugWriter) Debug ¶
func (w NonDebugWriter) Debug(msg string, params ...interface{})
Debug ditchs debug operation
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer will write logs to the underlaying writer
Click to show internal directories.
Click to hide internal directories.