printer

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *config.Log) (log.Printer, error)

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 map[string]string) (log.Printer, error)

Printer returns a new logger initialised with the given config

Directories

Path Synopsis
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