Documentation ¶
Overview ¶
Package slogger is a combination of Zap and Sentry.
Index ¶
- func Debug(message string)
- func EpochTimeEncoderInt64(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func Error(message string)
- func Fatal(message string)
- func Info(message string)
- func SetConfig(c Config)
- func Warning(message string)
- type Config
- type LogglyZap
- type LogglyZapOptions
- type SentryZap
- type SentryZapOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(message string)
Debug logs additional messages, these are interesting for debugging the application.
func EpochTimeEncoderInt64 ¶
func EpochTimeEncoderInt64(t time.Time, enc zapcore.PrimitiveArrayEncoder)
EpochTimeEncoderInt64 is a time encoder for Zap that encodes time to int64 instead of float64.
func Error ¶
func Error(message string)
Error logs errors that happened, this impacted the process and need to be looked at.
func Fatal ¶
func Fatal(message string)
Fatal logs fatal errors, when this happens the process has stopped. This is worst case scenario.
func Info ¶
func Info(message string)
Info logs informational messages, these are not really interesting and could be ignored.
Types ¶
type Config ¶ added in v0.2.0
type Config struct { Level string Sentry SentryZapOptions Loggly LogglyZapOptions }
type LogglyZap ¶ added in v0.2.0
type LogglyZap struct { Message string Client *loggly.Client Options LogglyZapOptions }
type LogglyZapOptions ¶ added in v0.2.0
type SentryZap ¶
type SentryZap struct { Message string Options SentryZapOptions }
type SentryZapOptions ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.