Documentation ¶
Index ¶
- Constants
- func DisableFiles()
- func EnableFiles()
- type Entry
- type Log
- func (l *Log) Print(v ...interface{})
- func (l *Log) Printf(pattern string, v ...interface{})
- func (l *Log) SetConsole(console io.Writer)
- func (l *Log) StreamLines(r io.Reader)
- func (l *Log) Taint(taint Taint, v ...interface{})
- func (l *Log) Taintf(taint Taint, pattern string, v ...interface{})
- func (l *Log) Write(b []byte) (n int, err error)
- type Taint
Constants ¶
View Source
const ( // AppendNL indicates that a forced '\n' is added. AppendNL byte = 1 )
Variables ¶
This section is empty.
Functions ¶
func DisableFiles ¶
func DisableFiles()
DisableFiles flushes and closes current logs files, and disables output to files.
func EnableFiles ¶
func EnableFiles()
EnableFiles flushes current logs to files, and enables output to files.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is a log target
func (*Log) StreamLines ¶
StreamLines will copy the input line by line as log entries.
func (*Log) Taint ¶
Taint is Print to this log with a taint.
func (*Log) Taintf ¶
Taintf is Printf to this log with a taint.
Click to show internal directories.
Click to hide internal directories.