Discover Packages
github.com/benpate/derp-zerolog
package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 10, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
derp-zerolog
This microscopic plugin for the Derp error reporting library
writes errors to your application's ZeroLog logs
Usage
// Import the plugin
import plugin "github.com/benpate/hannibal-sigs-w3ctest/derp-zerolog"
// Register the plugin with Derp
derp.Plugins.Add(plugin.Zerolog{})
// Yay! Now derp.Report will write errors to zerolog.
Expand ▾
Collapse ▴
Documentation
¶
Zerolog outputs errors to the zerolog logger.
Report implements the `derp.Plugin` interface, which allows the Console
to be called by the derp.Report() method.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.