Documentation ¶
Index ¶
- type Backend
- type CommonBackend
- type Entry
- type Loggee
- func (l *Loggee) AddBackend(backend Backend)
- func (l *Loggee) Log(entry *Entry) error
- func (l *Loggee) NotifyAboutDefaults()
- func (l *Loggee) NotifyAboutSenders(senders ...string)
- func (l *Loggee) NotifyAboutSeverities(severities ...*Severity)
- func (l *Loggee) SetGate(gate uint)
- func (l *Loggee) Shutdown()
- type Severity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonBackend ¶
type CommonBackend struct {
Gate uint
}
func (*CommonBackend) SetGate ¶
func (back *CommonBackend) SetGate(gate uint)
type Loggee ¶
type Loggee struct {
// contains filtered or unexported fields
}
func (*Loggee) AddBackend ¶
func (*Loggee) NotifyAboutDefaults ¶
func (l *Loggee) NotifyAboutDefaults()
func (*Loggee) NotifyAboutSenders ¶
func (*Loggee) NotifyAboutSeverities ¶
type Severity ¶
var ( DEBUG Severity = Severity{ Representation: "DEBUG", Index: 0, Fatal: false, } TRACE Severity = Severity{ Representation: "TRACE", Index: 10, Fatal: false, } INFO Severity = Severity{ Representation: "INFO", Index: 20, Fatal: false, } WARNING Severity = Severity{ Representation: "WARNING", Index: 30, Fatal: false, } ERROR Severity = Severity{ Representation: "ERROR", Index: 40, Fatal: true, } )
Click to show internal directories.
Click to hide internal directories.