Documentation
¶
Index ¶
- Variables
- type Color
- type Field
- type Format
- type Message
- func (msg *Message) Debug(format string, args ...interface{})
- func (msg *Message) Error(format string, args ...interface{})
- func (msg *Message) Exit(code int, format string, args ...interface{})
- func (msg *Message) Fatal(format string, args ...interface{})
- func (msg *Message) Field(name string, value interface{}) *Message
- func (msg *Message) Fields(fields ...Field) *Message
- func (msg *Message) Info(format string, args ...interface{})
- func (msg *Message) Log(level int, format string, args ...interface{})
- func (msg *Message) Panic(format string, args ...interface{})
- func (msg *Message) Props() (stream *os.File, level string, color Color)
- func (msg *Message) Trace(format string, args ...interface{})
- func (msg *Message) Warn(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var MsgPool = sync.Pool{ New: func() interface{} { return &Message{} }, }
MsgPool is a synchronized pool of messages
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Time string
Name string
Text string
Level int
Threshold int
HasColor bool
Stdout *os.File
Stderr *os.File
Print Format
Data []interface{}
}
Message is a log message that gets built in multiple steps
Click to show internal directories.
Click to hide internal directories.