apexlog

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 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

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

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