Documentation
¶
Index ¶
- func Fatalf(ctx context.Context, err error, format string, args ...any)
- func GetGlobalLogger() *zerolog.Logger
- func SentryDefer()
- func SentryFlush()
- func SetupLog(ctx context.Context, cfg *types.ServerLogConfig, dsn string) error
- type Fields
- func (f *Fields) Debug(ctx context.Context, args ...any)
- func (f *Fields) Debugf(ctx context.Context, format string, args ...any)
- func (f *Fields) Error(ctx context.Context, err error, args ...any)
- func (f *Fields) Errorf(ctx context.Context, err error, format string, args ...any)
- func (f *Fields) Fatalf(ctx context.Context, err error, format string, args ...any)
- func (f *Fields) Info(ctx context.Context, args ...any)
- func (f *Fields) Infof(ctx context.Context, format string, args ...any)
- func (f *Fields) Warn(ctx context.Context, args ...any)
- func (f *Fields) Warnf(ctx context.Context, format string, args ...any)
- func (f *Fields) WithField(key string, value any) *Fields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGlobalLogger ¶
func SentryFlush ¶ added in v0.1.4
func SentryFlush()
SentryFlush sends the events still queued; main defers it so a normal exit loses none.
Types ¶
type Fields ¶
type Fields struct {
// contains filtered or unexported fields
}
Fields carries key-value context for one log entry.
Click to show internal directories.
Click to hide internal directories.