Documentation
¶
Index ¶
- type Level
- type Logger
- type Master
- func (m *Master) Build(id, name, level string, output Output) error
- func (m *Master) Close()
- func (log Master) CreateLogger(id, name string) Logger
- func (log Master) Debug(msg string, data ...interface{})
- func (log Master) Error(msg string, data ...interface{})
- func (log Master) Fatal(msg string, data ...interface{})
- func (log Master) Info(msg string, data ...interface{})
- func (log Master) NewStdLogger(level, prefix string, flag int) *_log.Logger
- func (log Master) Notice(msg string, data ...interface{})
- func (log Master) Remove()
- func (log Master) SetLevel(level string)
- func (log Master) Trace(msg string, data ...interface{})
- func (log Master) Warning(msg string, data ...interface{})
- type Output
- type OutputSyslog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Trace(msg string, data ...interface{}) Debug(msg string, data ...interface{}) Info(msg string, data ...interface{}) Notice(msg string, data ...interface{}) Warning(msg string, data ...interface{}) Error(msg string, data ...interface{}) Fatal(msg string, data ...interface{}) SetLevel(level string) CreateLogger(id, name string) Logger Remove() NewStdLogger(level, prefix string, flag int) *log.Logger }
Logger AFAIRE.
type Master ¶
type Master struct {
// contains filtered or unexported fields
}
Master AFAIRE.
func (Master) CreateLogger ¶
CreateLogger AFAIRE.
func (Master) NewStdLogger ¶
NewStdLogger AFAIRE.
type Output ¶
type Output interface { Write(buf *buffer.Buffer, log *logger, level Level, msg string, data ...interface{}) error Close() error }
Output AFAIRE.
type OutputSyslog ¶
OutputSyslog AFAIRE.
func NewOutputSyslog ¶
func NewOutputSyslog(facility, appName string) (*OutputSyslog, error)
NewOutputSyslog AFAIRE.
Click to show internal directories.
Click to hide internal directories.