Documentation ¶
Overview ¶
Package logger AFAIRE.
Index ¶
- type FileOutput
- type Formatter
- type Level
- type LogAdapter
- type Logger
- func (l *Logger) Clone(prefix string) *Logger
- func (l *Logger) Close()
- func (l *Logger) Critical(msg string, ctx ...interface{})
- func (l *Logger) Debug(msg string, ctx ...interface{})
- func (l *Logger) Error(msg string, ctx ...interface{})
- func (l *Logger) Info(msg string, ctx ...interface{})
- func (l *Logger) Log(level Level, msg string, ctx ...interface{})
- func (l *Logger) NewLogAdapter(level string) *LogAdapter
- func (l *Logger) Notice(msg string, ctx ...interface{})
- func (l *Logger) Trace(msg string, ctx ...interface{})
- func (l *Logger) Warning(msg string, ctx ...interface{})
- type Output
- type OutputProperties
- type StderrOutput
- type StdoutOutput
- type SyslogOutput
- type TextFormatter
- type WriterOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileOutput ¶
type FileOutput struct { *WriterOutput // contains filtered or unexported fields }
FileOutput AFAIRE.
type Formatter ¶
type Formatter interface {
Format(buf *bytes.Buffer, prefix string, level Level, msg string, out Output, ctx ...interface{})
}
Formatter AFAIRE
type LogAdapter ¶
type LogAdapter struct {
// contains filtered or unexported fields
}
LogAdapter AFAIRE.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger AFAIRE.
func (*Logger) NewLogAdapter ¶
func (l *Logger) NewLogAdapter(level string) *LogAdapter
NewLogAdapter AFAIRE.
type Output ¶
type Output interface { LogDateTime() bool LogLevel() bool AddNewLine() bool Log(level Level, buf []byte) error Close() error }
Output AFAIRE.
func NewSyslogOutput ¶
NewSyslogOutput AFAIRE.
type OutputProperties ¶
type OutputProperties struct {
// contains filtered or unexported fields
}
OutputProperties AFAIRE.
func NewOutputProperties ¶
func NewOutputProperties(dateTime, level, newLine bool) *OutputProperties
NewOutputProperties AFAIRE.
func (*OutputProperties) AddNewLine ¶
func (op *OutputProperties) AddNewLine() bool
AddNewLine AFAIRE.
func (*OutputProperties) LogDateTime ¶
func (op *OutputProperties) LogDateTime() bool
LogDateTime AFAIRE.
type SyslogOutput ¶
type SyslogOutput struct { *syslog.Writer *OutputProperties }
SyslogOutput AFAIRE.
type WriterOutput ¶
type WriterOutput struct { io.Writer *OutputProperties }
WriterOutput AFAIRE.
func NewWriterOutput ¶
func NewWriterOutput(iow io.Writer, op *OutputProperties) *WriterOutput
NewWriterOutput AFAIRE.
Click to show internal directories.
Click to hide internal directories.