Documentation ¶
Index ¶
- Constants
- type LogFile
- type Logger
- func (l *Logger) AppendErr(b []byte)
- func (l *Logger) AppendOut(b []byte)
- func (l *Logger) Close() error
- func (l *Logger) Error(items ...interface{})
- func (l *Logger) Errorf(pattern string, items ...interface{})
- func (l *Logger) FormatLine(b []byte) (bufConsole []byte, bufFile []byte)
- func (l *Logger) Print(items ...interface{})
- func (l *Logger) Printf(pattern string, items ...interface{})
- func (l *Logger) StreamErr(r io.Reader)
- func (l *Logger) StreamOut(r io.Reader)
- type LoggerOptions
Constants ¶
View Source
const (
LoggerDateLayout = "15:04:05.000"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(opts LoggerOptions) (logger *Logger, err error)
func (*Logger) FormatLine ¶ added in v1.5.3
type LoggerOptions ¶ added in v1.5.2
Click to show internal directories.
Click to hide internal directories.