package
0.1.2
Repository: https://github.com/atb-as/go-support.git
Documentation: pkg.go.dev

# README

Logging functions

This module contains functions to make the Zerolog work well with GCP and AMP, and functions for setting parameters for contextual logging.

To make Zerolog format log entries correctly for GCP, call ConfigureGcpLogging as early as possible in application / function startup. Use the XxxContext functions to set the given context when it is available.

# Packages

No description provided by the author
No description provided by the author

# Functions

AccountIdContext adds an account-based ticketing customer account ID to the logging context.
ConfigureGcpLogging configures Zerolog to use field names and values that are understood by GCP.
FirebaseContext adds a Firebase Auth user ID to the logging context.
ProfileContext adds a customer profile number to the logging context.