apexlog

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Gobrake         *gobrake.Notifier
	HandlerSeverity log.Level
	// contains filtered or unexported fields
}

Handler implementation.

func New

func New(notifier *gobrake.Notifier, level log.Level) *Handler

New returns a function that satisfies apex/log.Handler interface

func NewLogger added in v5.6.0

func NewLogger(h *Handler) (*Handler, error)

func (*Handler) HandleLog

func (h *Handler) HandleLog(e *log.Entry) error

HandleLog method is used for sending notices to airbrake.

func (*Handler) SetDepth added in v5.6.0

func (h *Handler) SetDepth(depth int)

SetDepth method is for setting the depth of the notices

Jump to

Keyboard shortcuts

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