log

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger = log.Logger

Logger holds a logger to log to.

func Buffer

func Buffer() (buffer *bytesutil.SynchronizedBuffer, logger *Logger)

Buffer returns a logger that writes to a buffer.

func File

func File(path string) (logger *Logger, loggerClose func(), err error)

File returns a logger that writes to a file.

func STDOUT

func STDOUT() (logger *Logger)

STDOUT returns a logger that writes to STDOUT.

func WithFile

func WithFile(parent *Logger, filePath string) (logger *Logger, loggerClose func(), err error)

WithFile returns a logger that writes to a file and to the parent logger at the same time.

Jump to

Keyboard shortcuts

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