logger
logger copied to clipboard
feat: add option to pass context to logger
Adds WithContext()
option that will cause the gin context to be passed to the zerolog event via logger.Ctx(...)
This is useful for zerolog hooks to be able to attach additional metadata, such as tracing span IDs and other contextual metadata to the event.