package
0.0.0-20240711163723-ffe99bd9adb3
Repository: https://github.com/xboshy/go-template.git
Documentation: pkg.go.dev
# Functions
Base returns the default Logger logging to.
Init needs to be called to ensure our logging has been initialized.
MakeCyclicFileWriter returns a writer that wraps a file to ensure it never grows too large.
NewLogger returns a new Logger logging to out.
NewWrappedLogger returns a new Logger that wraps an external logrus logger.
RegisterExitHandler registers a function to be called on exit by logrus Exit handling happens when logrus.Exit is called, which is called by logrus.Fatal.
No description provided by the author
# Structs
CyclicFileWriter implements the io.Writer interface and wraps an underlying file.
# Interfaces
Logger is the interface for loggers.