package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev

# Functions

BasicRateLimitedLogger returns a Logger that logs to the global logger no more than once per the provided duration.
CopyStandardLogTo redirects the stdlib log package global output to the global logger for the specified level.
Debugf logs to the global logger.
DebugfAtDepth logs to the global logger.
Infof logs to the global logger.
InfofAtDepth logs to the global logger.
IsLogging returns whether the global logger is logging.
LocalStack returns the local goroutine stack, excluding the top N entries.
Log retrieves the global logger.
RateLimitedLogger returns a Logger that logs to the provided logger no more than once per the provided duration.
SetLevel sets the log level.
SetTarget sets the log target.
Stacks returns goroutine stacks, like panic.
Traceback logs the given message and dumps a stacktrace of the current goroutine.
TracebackAll logs the given message and dumps a stacktrace of all goroutines.
Warningf logs to the global logger.
WarningfAtDepth logs to the global logger.

# Constants

Debug indicates that output should not normally be emitted.
Info indicates that output should normally be emitted.
Warning indicates that output should always be emitted.

# Structs

BasicLogger is the default implementation of Logger.
GoogleEmitter is a wrapper that emits logs in a format compatible with package github.com/golang/glog.
JSONEmitter logs messages in json format.
K8sJSONEmitter logs messages in json format that is compatible with Kubernetes fluent configuration.
TestEmitter may be used for wrapping tests.
Writer writes the output to the given writer.

# Interfaces

Emitter is the final destination for logs.
Logger is a high-level logging interface.
TestLogger is implemented by testing.T and testing.B.

# Type aliases

Level is the log level.
MultiEmitter is an emitter that emits to multiple Emitters.