Documentation ¶
Index ¶
- func NewFileLogger(tags map[string]string, stdout, stderr bool, fileName string) zerolog.Logger
- func NewFileWriter(fileName string) (io.Writer, error)
- func NewFileWriterMust(fileName string) io.Writer
- func NewLogger(tags map[string]string, stdout, stderr bool, writers ...io.Writer) zerolog.Logger
- func NewRollingWriter(fileName string, maxSize, maxAge, maxBackups int, compress, localtime bool) io.Writer
- func NewStderrWriter() io.Writer
- func NewStdoutWriter() io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileLogger ¶
func NewFileWriterMust ¶
func NewRollingWriter ¶
func NewRollingWriter(fileName string, maxSize, maxAge, maxBackups int, compress, localtime bool) io.Writer
maxSize:unit megabytes, maxAge:unit days
func NewStderrWriter ¶
func NewStdoutWriter ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.