console

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: AGPL-3.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) Endpoint

func (c *Target) Endpoint() string

Endpoint returns the backend endpoint

func (*Target) Send

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

Send log message 'e' to console

func (*Target) String

func (c *Target) String() string

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