Documentation
¶
Index ¶
- Variables
- type EntryType
- type LineByLineWriter
- type LogEntry
- type Logger
- func (self *Logger) AddOutput(out interface{}) uint64
- func (self *Logger) AddOutputOpt(out interface{}, opts *OutputOptions) uint64
- func (self *Logger) Close()
- func (self *Logger) ConnectCallback(callback LoggerCallback)
- func (self *Logger) DelOutput(id uint64)
- func (self *Logger) Error(value interface{})
- func (self *Logger) Info(txt string)
- func (self *Logger) PutEntry(type_ EntryType, value interface{})
- func (self *Logger) PutEntryComplete(entry *LogEntry)
- func (self *Logger) ResetOutput()
- func (self *Logger) StderrLbl() *LineByLineWriter
- func (self *Logger) StdoutLbl() *LineByLineWriter
- func (self *Logger) Text(txt string)
- func (self *Logger) Warning(txt string)
- type LoggerCallback
- type LoggerI
- type OutputOptions
- type WriterWrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var SEP = []byte("\n")
View Source
var SEP_LEN = len(SEP)
Functions ¶
This section is empty.
Types ¶
type LineByLineWriter ¶
type LineByLineWriter struct {
// contains filtered or unexported fields
}
func NewLineByLineWriter ¶
func NewLineByLineWriter(l *Logger, err_logger bool) *LineByLineWriter
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) AddOutputOpt ¶
func (self *Logger) AddOutputOpt(out interface{}, opts *OutputOptions) uint64
out type must conform to io.Writer or io.WriteCloser
func (*Logger) ConnectCallback ¶
func (self *Logger) ConnectCallback(callback LoggerCallback)
func (*Logger) PutEntryComplete ¶
func (*Logger) ResetOutput ¶
func (self *Logger) ResetOutput()
func (*Logger) StderrLbl ¶
func (self *Logger) StderrLbl() *LineByLineWriter
func (*Logger) StdoutLbl ¶
func (self *Logger) StdoutLbl() *LineByLineWriter
type LoggerCallback ¶
type OutputOptions ¶
type WriterWrapper ¶
type WriterWrapper struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.