Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogger ¶
GetLogger returns the zerolog logger from context. It returns nil if not available.
func InitApplicationContext ¶
InitApplicationContext returns a new context with a new ApplicationContext.
func InitLogContext ¶
InitLogContext returns a new context with a new LogContext.
Types ¶
type ApplicationContext ¶
type ApplicationContext struct { TransactionID string Correlator string Operation string Alarm string }
ApplicationContext contains the context of a request for logging and functional purposes.
func GetApplicationContext ¶
func GetApplicationContext(ctx context.Context) *ApplicationContext
GetApplicationContext retrieves the ApplicationContext from standard context.
type LogContext ¶
type LogContext struct {
// contains filtered or unexported fields
}
LogContext stores the logger in the Context.
Click to show internal directories.
Click to hide internal directories.