log: github.com/apex/log/handlers/memory Index | Files

package memory

import "github.com/apex/log/handlers/memory"

Package memory implements an in-memory handler useful for testing, as the entries can be accessed after writes.


Package Files


type Handler Uses

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

Handler implementation.

func New Uses

func New() *Handler

New handler.

func (*Handler) HandleLog Uses

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

HandleLog implements log.Handler.

Package memory imports 2 packages (graph) and is imported by 2 packages. Updated 2016-07-15. Refresh now. Tools for package owners.