Documentation ¶
Overview ¶
Package logger shows a pattern of using a buffer to handle log write continuity by dealing with write latencies by throwing away log data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides support to throw log lines away if log writes start to timeout due to latency.
func New ¶
New creates a logger value and initializes it for use. The user can pass the size of the buffer to use for continuity.
Click to show internal directories.
Click to hide internal directories.