package
0.12.0
Repository: https://github.com/scionproto/scion.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package mock_log is a generated GoMock package.
No description provided by the author

# Functions

AddCallerSkip increases the number of callers skipped by caller annotation.
CtxWith returns a new context, based on ctx, that embeds argument logger.
Debug logs at debug level.
Discard sets the logger up to discard all log entries.
Error logs at error level.
Flush writes the logs to the underlying buffer.
FromCtx returns the logger embedded in ctx if one exists, or the root logger otherwise.
HandlePanic catches panics and logs them.
Info logs at info level.
New creates a logger with the given context.
NewDebugID creates a new debug id.
Root returns the root logger.
SafeDebug logs to l only if l is not nil.
SafeError logs to l only if l is not nil.
SafeInfo logs to l only if l is not nil.
SafeNewLogger creates a new logger as a child of l only if l is not nil.
Setup configures the logging library with the given config.
WithEntriesCounter configures a metric counters that are incremented with every emitted log entry.
WithLabels returns context with additional labels added to the logger.
WithOptions returns the logger with the options applied.

# Constants

No description provided by the author
DefaultConsoleLevel is the default log level for the console.
DefaultStacktraceLevel is the default log level for which stack traces are included.
No description provided by the author
No description provided by the author

# Variables

ConsoleLevel allows interacting with the logging level at runtime.

# Structs

Config is the configuration for the logger.
ConsoleConfig is the config for the console logger.
DiscardLogger implements the Logger interface and discards all messages.
EntriesCounter defines the metrics that are incremented when emitting a log entry.
Span is a logger that attaches all logs to the span.

# Interfaces

Logger describes the logger interface.

# Type aliases

DebugID is used to correlate behavior in logs.
No description provided by the author
Option is a function that sets an option.