Documentation
¶
Overview ¶
Package logger provides the plugin's structured logging and rotating log files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init initializes the global logger with file and stdout output. Call this once at startup. If not called, Get() will initialize with defaults.
Types ¶
type RotatingFile ¶
type RotatingFile struct {
// contains filtered or unexported fields
}
RotatingFile is an append-only log file that is renamed to <path>.1 once it would grow past maxBytes, so a log never takes more than twice that on disk.
func OpenRotating ¶
func OpenRotating(path string, maxBytes int64) (*RotatingFile, error)
OpenRotating opens or creates the log file at path.
Click to show internal directories.
Click to hide internal directories.