printer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config config.Tree) (log.Printer, error)

New returns a new logger instance

func Printers

func Printers() []string

Printers returns the list of registered printers

func Register

func Register(name string, printer Printer)

Register makes a logger printer available by the provided name. If an printer is registered twice or if an printer is nil, it will panic.

Types

type Printer

type Printer func(config config.Tree) (log.Printer, error)

Printer returns a new logger initialised with the given config

Directories

Path Synopsis
Package file prints log lines to a file.
Package file prints log lines to a file.
Package stackdriver send log lines to Google Stackdriver.
Package stackdriver send log lines to Google Stackdriver.
Package stdout prints log lines into the standard output.
Package stdout prints log lines into the standard output.

Jump to

Keyboard shortcuts

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