Documentation
¶
Index ¶
- func Init(moduleName string)
- func Value(ctx context.Context) (zerolog.Logger, bool)
- func With(ctx context.Context, logger zerolog.Logger) context.Context
- func WithClusterName(cluster string) zerolog.Logger
- func WithProjectAndCluster(project, cluster string) zerolog.Logger
- func WithProjectName(project string) zerolog.Logger
- func WithTaskContext(project, cluster, id string) zerolog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(moduleName string)
Initialize the logging framework. Inputs are the golang module name used as a logging prefix and the env variable with the logging level
func WithClusterName ¶
WithClusterName creates a new logger aware of the cluster-name.
func WithProjectAndCluster ¶
func WithProjectName ¶
WithProjectName creates a new logger aware of the project-name.
func WithTaskContext ¶ added in v0.9.11
WithTaskContext creates a new logger enriched with project, cluster and task ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.