Documentation ¶
Index ¶
- type BitSet
- type Log
- func (l *Log) AddBuffer(format string, v ...interface{})
- func (l *Log) Bold(format string, v ...interface{})
- func (l *Log) BoldInfo(format string, v ...interface{})
- func (l *Log) ClearMode(f BitSet)
- func (l *Log) Debug(format string, v ...interface{})
- func (l *Log) DisableBuffer()
- func (l *Log) EnableBuffer()
- func (l *Log) Error(format string, v ...interface{})
- func (l *Log) GetBuffer() string
- func (l *Log) GetMode() BitSet
- func (l *Log) HasMode(f BitSet) bool
- func (l *Log) Init(stdOut, stdErr io.Writer)
- func (l *Log) Panic(format string, v ...interface{})
- func (l *Log) SetColorPrefix()
- func (l *Log) SetFlags(flags int)
- func (l *Log) SetInteractive()
- func (l *Log) SetMode(f BitSet)
- func (l *Log) SetModeBool(f BitSet, b bool)
- func (l *Log) SetNoPrefix()
- func (l *Log) SetOutput(stdOut, stdErr io.Writer)
- func (l *Log) Standard(format string, v ...interface{})
- func (l *Log) StandardInfo(format string, v ...interface{})
- func (l *Log) ToggleMode(f BitSet)
- func (l *Log) Verbose(format string, v ...interface{})
- func (l *Log) VerboseInfo(format string, v ...interface{})
- func (l *Log) Warn(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is a type for structured message logging
func (*Log) DisableBuffer ¶
func (l *Log) DisableBuffer()
func (*Log) EnableBuffer ¶
func (l *Log) EnableBuffer()
func (*Log) Init ¶
LogInit is a member function for Log Inits all logging to given file handle except panic Default mode is "silent" and "no color"
func (*Log) SetColorPrefix ¶
func (l *Log) SetColorPrefix()
func (*Log) SetModeBool ¶
func (*Log) SetNoPrefix ¶
func (l *Log) SetNoPrefix()
func (*Log) StandardInfo ¶
func (*Log) ToggleMode ¶
func (*Log) VerboseInfo ¶
Click to show internal directories.
Click to hide internal directories.