multi

package
v3.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package multi implements a pkg/log.Handler that applies every log message on multiple Handlers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler implements log.Handler.

func New

func New(handlers ...log.Handler) *Handler

New returns a new handler that combines the underlying handlers.

func (*Handler) HandleLog

func (m *Handler) HandleLog(entry log.Entry) error

HandleLog implements log.Handler.

Jump to

Keyboard shortcuts

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