Documentation
¶
Index ¶
- Constants
- func Reset() error
- func StopLog()
- type Log
- func (l *Log) Debug(m ...interface{})
- func (l *Log) Error(m ...interface{})
- func (l *Log) Info(m ...interface{})
- func (l *Log) SetFormat(format int8) error
- func (l *Log) SetLayout(layout string) error
- func (l *Log) SetLevel(level int8) error
- func (l *Log) SetWriter(writer io.Writer) error
- func (l *Log) Warn(m ...interface{})
- type MockWriter
Constants ¶
View Source
const ( ERROR int8 = iota WARN INFO DEBUG TAB int8 = iota JSON TabFormat = "%s %s %s" JsonFormat = "{\"timestamp\": \"%s\", \"level\": \"%s\", \"message\": \"%s\"}" TimestampLayoutFormat = "2006-01-02 15:04:00" )
Constants definitions
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockWriter ¶
type MockWriter struct {
// contains filtered or unexported fields
}
MockWrite implements io.Writer and is used to test messageOutput
Click to show internal directories.
Click to hide internal directories.