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 ¶
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.
Click to show internal directories.
Click to hide internal directories.