Documentation
¶
Overview ¶
Package zaptoseq provides a hook to send logs from Zap logger to Seq (https://datalust.co/seq).
Index ¶
- Variables
- type Hook
- func (h *Hook) DisableFallbackLogs()
- func (h *Hook) EnableFallbackLogs()
- func (h *Hook) NewCore(zapconfig zap.Config) zapcore.Core
- func (h *Hook) NewLogger(zapconfig zap.Config) *zap.Logger
- func (h *Hook) NewLoggerWith(zapconfig zap.Config, cores ...zapcore.Core) *zap.Logger
- func (h *Hook) Wait()
- func (h *Hook) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyURL = errors.New("empty Seq url")
View Source
var ErrRequestCreation = errors.New("cannot create a request to Seq")
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
func (*Hook) DisableFallbackLogs ¶
func (h *Hook) DisableFallbackLogs()
DisableFallbackLogs turns off sending errors during Seq request to the console.
func (*Hook) EnableFallbackLogs ¶
func (h *Hook) EnableFallbackLogs()
EnableFallbackLogs turns on sending errors during Seq request to the console.
func (*Hook) NewLoggerWith ¶
NewLoggerWith builts a Zap-logger that send logs to Seq and also to other cores.
Click to show internal directories.
Click to hide internal directories.