memory

package
v3.10.0 Latest Latest
Warning

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

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

Documentation

Overview

Package memory implements a pkg/log.Handler that saves all entries in process memory

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Entries []log.Entry
	// contains filtered or unexported fields
}

Handler implements log.Handler by storing entries in memory.

func New

func New() *Handler

New creates a new Handler that stores the entries in memory.

func (*Handler) HandleLog

func (h *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