zerolog

package
v5.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WriteCloser

type WriteCloser struct {
	Gobrake *gobrake.Notifier
	// contains filtered or unexported fields
}

func New

func New(notifier *gobrake.Notifier) (*WriteCloser, error)

New creates a new WriteCloser

func (*WriteCloser) Close

func (w *WriteCloser) Close() error

Close flushes any remaining notices left in gobrake queue

func (*WriteCloser) SetDepth added in v5.6.0

func (w *WriteCloser) SetDepth(depth int)

SetDepth method is for setting the depth of the notices

func (*WriteCloser) Write

func (w *WriteCloser) Write(data []byte) (int, error)

Write parses the log data and sends off error notices to airbrake

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL