package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/go.git
Documentation: pkg.go.dev
# Functions
Ctx returns the logger bound to the provided context, otherwise providing the default logger.
Debug logs a message at the debug severity.
Debugf logs a message at the debug severity.
Error logs a message at the Error severity.
Errorf logs a message at the Error severity.
Fatal logs a message at the Fatal severity.
Fatalf logs a message at the Fatal severity.
Info logs a message at the Info severity.
Infof logs a message at the Info severity.
New creates a new logger, starting at a WARN level and including the current processes pid as a field.
NewLogglyHook creates a new hook.
Panic logs a message at the Panic severity.
Panicf logs a message at the Panic severity.
PushContext is a helper method to derive a new context with a modified logger bound to it, where the logger is derived from the current value on the context.
Set establishes a new context to which the provided sub-logger is bound.
Warn logs a message at the Warn severity.
Warnf logs a message at the Warn severity.
# Variables
DefaultLogger represents the default logger that is not bound to any specific context.
# Type aliases
F wraps the logrus.Fields type for the convenience of typing less.