Documentation ¶
Index ¶
- type Field
- type FieldType
- type Logger
- func (l *Logger) Debug(msg string, fields ...Field)
- func (l *Logger) Debugf(template string, args ...interface{})
- func (l *Logger) Error(msg string, fields ...Field)
- func (l *Logger) Errorf(template string, args ...interface{})
- func (l *Logger) Info(msg string, fields ...Field)
- func (l *Logger) Infof(template string, args ...interface{})
- func (l *Logger) Warn(msg string, fields ...Field)
- func (l *Logger) Warnf(template string, args ...interface{})
- type Option
- type PanicWrapper
- type SentryCore
- func (s *SentryCore) Check(entry zapcore.Entry, check *zapcore.CheckedEntry) *zapcore.CheckedEntry
- func (s *SentryCore) Enabled(lvl zapcore.Level) bool
- func (s *SentryCore) Sync() error
- func (s *SentryCore) With(fields []zapcore.Field) zapcore.Core
- func (s *SentryCore) Write(entry zapcore.Entry, fields []zapcore.Field) error
- type SentryOptions
- type Sentryer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewTestLogger ¶
func NewTestLogger() *Logger
NewTestLogger return instance of Logger that discards all output.
type PanicWrapper ¶
type PanicWrapper struct {
// contains filtered or unexported fields
}
type SentryCore ¶
type SentryCore struct {
// contains filtered or unexported fields
}
func (*SentryCore) Check ¶
func (s *SentryCore) Check(entry zapcore.Entry, check *zapcore.CheckedEntry) *zapcore.CheckedEntry
func (*SentryCore) Sync ¶
func (s *SentryCore) Sync() error
type SentryOptions ¶
type SentryOptions struct { sentry.ClientOptions MinLevel zapcore.Level FlushTimeout time.Duration Tags map[string]string }
SentryOptions advanced options for sentry client
type Sentryer ¶
type Sentryer interface { Flush(timeout time.Duration) bool Recover(err interface{}, hint *sentry.EventHint, scope sentry.EventModifier) *sentry.EventID CaptureException(exception error, hint *sentry.EventHint, scope sentry.EventModifier) *sentry.EventID CaptureMessage(message string, hint *sentry.EventHint, scope sentry.EventModifier) *sentry.EventID }
Click to show internal directories.
Click to hide internal directories.