sentrylog

package module
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package sentrylog is a plugin that integrates golog with sentry.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(exceptions, logs bool) gcore.Hook

Init returns a hook which works with the Sentry API.

If exceptions is true, errors will be captured as Sentry exceptions.

If logs is true, Sentry will be used as a log collector.

To filter which logs are collected, configure the Sentry instance with sentry.ClientOptions.

Example
log := gcore.Init("app", colorfmt.Init())
log = log.WithHook(Init(true, true))

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL