Skip to content

A mapped diagnostic context implementation for Go inspired by Slf4J

Notifications You must be signed in to change notification settings

TelenorNorway/mdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mapped Diagnostic Context (MDC) for Go

This module exposes a simple API for manipulating a map of key-value pairs that can be used to enrich log messages with pieces of information that are not available in the scope of the log message itself.

This module is inspired by the Mapped Diagnostic Context in the Slf4J library for Java. This module uses timandy/routine, which is essentially provides a ThreadLocal implementation for Go's goroutines. Version 0.6.0 is used.

See example/main.go for a simple example on how to use.

Caution

Be sure to check out the support grid before you take it in use.

About

A mapped diagnostic context implementation for Go inspired by Slf4J

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages