loggerutils

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 Value added in v0.10.0

func Value(ctx context.Context) (zerolog.Logger, bool)

func With added in v0.10.0

func With(ctx context.Context, logger zerolog.Logger) context.Context

func WithClusterName

func WithClusterName(cluster string) zerolog.Logger

WithClusterName creates a new logger aware of the cluster-name.

func WithProjectAndCluster

func WithProjectAndCluster(project, cluster string) zerolog.Logger

func WithProjectName

func WithProjectName(project string) zerolog.Logger

WithProjectName creates a new logger aware of the project-name.

func WithTaskContext added in v0.9.11

func WithTaskContext(project, cluster, id string) zerolog.Logger

WithTaskContext creates a new logger enriched with project, cluster and task ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL