package
0.0.0-20250401131924-d97c3feeda23
Repository: https://github.com/ibm/ibmcloud-object-storage-plugin.git
Documentation: pkg.go.dev

# Functions

CreatePodNameLogger takes a zap logger and adds a pod name field NOTE: the logger returned is a different logger from the one passed in.
CreateZapPodNameKeyField Creates a zap logger field containing the pod name that the container is in, convenience method for creating the field so it can be passed in as a parameter in the logging statements.
CreateZapRequestIDField Creates a zap logger field containing the request ID, convenience method for creating the field in cases where the ContextLogger can't be used and the field needs to be passed in as a parameter in the logging statements.
CreateZapTiggerKeyField Creates a zap logger field containing the trigger key for a job, convenience method for creating the field in cases where the ContextLogger can't be used and the field needs to be passed in as a parameter in the logging statements.
GetZapContextLogger Creates a new logger based from the global logger and adds values from the context as logging fields.
GetZapContextLoggerFromLogger creates a new logger based from an existing logger and adds values from the context as logging fields.
GetZapDefaultContextLogger Creates a new logger based from the global logger and adds RequestID from the context as logging field.
GetZapLogger returns an instance of the logger, initializing a new logger.
NewZapLogger creates and returns a new global logger.

# Constants

PodName is the zap field key label for pod name.

# Variables

ZapLogger is the global logger.