package text

import "github.com/bep/logg/handlers/text"

Package text implements a development-friendly textual handler.

Index

Variables

var Default = New(os.Stderr, Options{})

Default handler outputting to stderr.

Types

type Handler

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

Handler implementation.

func New

func New(w io.Writer, opts Options) *Handler

New handler.

func (*Handler) HandleLog

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

HandleLog implements logg.Handler.

type Options

type Options struct {
	// Separator is the separator between fields.
	// Default is " ".
	Separator string
}

Options holds options for the text handler.

Source Files

text.go

Version
v0.4.0 (latest)
Published
Nov 6, 2023
Platform
linux/amd64
Imports
5 packages
Last checked
5 days ago

Tools for package owners.