console

package
v0.0.0-...-082243b Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target struct{}

Target implements loggerTarget to send log in plain or json format to the standard output.

func New

func New() *Target

New initializes a new logger target which prints log directly in the standard output.

func (*Target) Send

func (c *Target) Send(e interface{}, logKind string) error

Send log message 'e' to console

func (*Target) Validate

func (c *Target) Validate() error

Validate - validate if the tty can be written to

Jump to

Keyboard shortcuts

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