logger

package
v0.0.0-...-6797358 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileLogger

func NewFileLogger(tags map[string]string, stdout, stderr bool, fileName string) zerolog.Logger

func NewFileWriter

func NewFileWriter(fileName string) (io.Writer, error)

func NewFileWriterMust

func NewFileWriterMust(fileName string) io.Writer

func NewLogger

func NewLogger(tags map[string]string, stdout, stderr bool, writers ...io.Writer) zerolog.Logger

func NewRollingWriter

func NewRollingWriter(fileName string, maxSize, maxAge, maxBackups int, compress, localtime bool) io.Writer

maxSize:unit megabytes, maxAge:unit days

func NewStderrWriter

func NewStderrWriter() io.Writer

func NewStdoutWriter

func NewStdoutWriter() io.Writer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL