stream

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFormatter

func WithFormatter(formatter monolog.Formatter) monolog.HandlerOpt

func WithLevel

func WithLevel(level logger.Level) monolog.HandlerOpt

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(writer io.Writer, opts ...monolog.HandlerOpt) *Handler

func (*Handler) Handle

func (h *Handler) Handle(record *monolog.Record) bool

func (*Handler) IsHandling

func (h *Handler) IsHandling(record *monolog.Record) bool

func (*Handler) SetFormatter

func (h *Handler) SetFormatter(formatter monolog.Formatter) *Handler

Jump to

Keyboard shortcuts

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