package
module
Version:
v1.5.1
Opens a new window with list of versions in this module.
Published: Jun 10, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
Documentation
¶
New build a new zerlog middleware with the provided configuration which has
Stack and Caller enabled
type Option func(opts *zerlogOptions)
Option assign settings to the zerolog middlware
Fields pass a map of attributes which are appended to all log messages
emitted by this logger.
Level minimum accepted level for logging.
Defaults to zerolog.InfoLevel.
Output is a writer where logs in JSON format are written.
Defaults to os.Stderr.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.