Documentation ¶
Index ¶
- func HookStandardLog(w io.Writer)
- func MustSetDSNAndHandler(dsn string)
- func NewSB() logging.LeveledBackend
- func Record2Level(rec *logging.Record) raven.Severity
- func RedirectStandardLog(logWriter io.Writer, withSentry bool)
- func SetupGoLogging(logPath string, dsn string, andStandardLog bool)
- func SetupSentryLogger()
- func SkipSpace(s string) string
- type LoggingRecord
- type SentryBackend
- type SentryLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HookStandardLog ¶
func MustSetDSNAndHandler ¶
func MustSetDSNAndHandler(dsn string)
func NewSB ¶
func NewSB() logging.LeveledBackend
func RedirectStandardLog ¶
func SetupGoLogging ¶
andStandardLog - hook https://golang.org/pkg/log calls also
func SetupSentryLogger ¶
func SetupSentryLogger()
Types ¶
type LoggingRecord ¶
type SentryBackend ¶
type SentryBackend struct { }
func (*SentryBackend) IsEnabledFor ¶
func (l *SentryBackend) IsEnabledFor(level logging.Level, module string) bool
Click to show internal directories.
Click to hide internal directories.