Documentation ¶
Overview ¶
Package buflog provides a buffered logging class that accumulates logs in memory until the flush threshold is reached which release stored logs, the buffered logger then act as a normal logger.
Basic example:
logger := buflog.New(os.Stdout, log.Info, log.Error) logger.Info("Connecting to the server...") // Outputs nothing logger.Error("Connection failed") // Outputs both lines
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
A Logger represents an active buffered logging object.
Click to show internal directories.
Click to hide internal directories.