Documentation ¶
Index ¶
- type Field
- type FieldType
- type Level
- type Logger
- func (l *Logger) AddField(name, value string) *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
- type TemporalLogger
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 }
type TemporalLogger ¶
type TemporalLogger struct {
// contains filtered or unexported fields
}
TemporalLogger wraps the Logger struct and implements the Temporal Logger interface:
Logger interface { Debug(msg string, keyvals ...interface{}) Info(msg string, keyvals ...interface{}) Warn(msg string, keyvals ...interface{}) Error(msg string, keyvals ...interface{}) }
func NewTemporalLogger ¶
func NewTemporalLogger(logger *Logger) *TemporalLogger
func (*TemporalLogger) Debug ¶
func (t *TemporalLogger) Debug(msg string, keyvals ...interface{})
func (*TemporalLogger) Error ¶
func (t *TemporalLogger) Error(msg string, keyvals ...interface{})
func (*TemporalLogger) Info ¶
func (t *TemporalLogger) Info(msg string, keyvals ...interface{})
func (*TemporalLogger) Warn ¶
func (t *TemporalLogger) Warn(msg string, keyvals ...interface{})
Click to show internal directories.
Click to hide internal directories.