package
0.0.0-20240719153732-6e8a03e781de
Repository: https://github.com/grafana/dskit.git
Documentation: pkg.go.dev

# Functions

Global returns the global logger.
No description provided by the author
NewBufferedLogger creates a new BufferedLogger with a configured capacity.
NewGoKit creates a new GoKit logger with the given format.
NewGoKitWithLevel creates a new GoKit logger with the given level and format.
NewGoKitWithWriter creates a new GoKit logger with the given format and writer.
NewRateLimitedLogger returns a log.Logger that is limited to the given number of logs per second, with the given burst size.
SetGlobal sets the global logger.
WithFlushCallback allows for a callback function to be executed when Flush() is called.
WithFlushPeriod creates a new BufferedLoggerOption that sets the flush period for the BufferedLogger.
WithPrellocatedBuffer preallocates a buffer to reduce GC cycles and slice resizing.

# Constants

No description provided by the author
No description provided by the author

# Structs

BufferedLogger buffers log lines to be flushed periodically.
Level is a settable identifier for the minimum level a log entry must have.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author