Documentation ¶
Overview ¶
Package logging provides logging helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RecentEntries = NewCircularBuffer(1024)
RecentEntries implements zap logging entries interception and stores the last 1024 entries in circular buffer in memory.
Functions ¶
func NewCircularBuffer ¶
func NewCircularBuffer(size int64) *circularBuffer
NewCircularBuffer creates a circular buffer for log entries in memory.
func SetupWithZapLogger ¶
SetupWithZapLogger initializes zap logging with a given logger and its level.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.