Documentation ¶
Index ¶
- func LogSentry(err error)
- func NewSentryLogger(sentryDSN string) error
- type LocalLogger
- func (l *LocalLogger) Close()
- func (l *LocalLogger) Criticalf(format string, a ...any)
- func (l *LocalLogger) Debugf(format string, a ...any)
- func (l *LocalLogger) Errorf(format string, a ...any)
- func (l *LocalLogger) Fatalf(format string, a ...any)
- func (l *LocalLogger) Infof(format string, a ...any)
- func (l *LocalLogger) Warningf(format string, a ...any)
- type Severity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogSentry ¶
func LogSentry(err error)
LogSentry writes errors to Sentry. Ensure NewSentryLogger() is called first to initialize the Sentry SDK with options.
func NewSentryLogger ¶
NewSentryLogger initializes Sentry SDK with options.
Types ¶
type LocalLogger ¶
type LocalLogger struct { }
func (*LocalLogger) Criticalf ¶
func (l *LocalLogger) Criticalf(format string, a ...any)
Criticalf writes CRITICAL severity logs to STDERR.
func (*LocalLogger) Debugf ¶
func (l *LocalLogger) Debugf(format string, a ...any)
Debugf writes DEBUG severity logs to STDERR.
func (*LocalLogger) Errorf ¶
func (l *LocalLogger) Errorf(format string, a ...any)
Errorf writes ERROR severity logs to STDERR.
func (*LocalLogger) Fatalf ¶
func (l *LocalLogger) Fatalf(format string, a ...any)
Fatalf writes CRITICAL severity log to STDERR, and aborts the caller process by exiting 1.
func (*LocalLogger) Infof ¶
func (l *LocalLogger) Infof(format string, a ...any)
Infof writes INFO severity logs to STDERR.
func (*LocalLogger) Warningf ¶
func (l *LocalLogger) Warningf(format string, a ...any)
Warningf writes WARNING severity logs to STDERR.
Click to show internal directories.
Click to hide internal directories.