console

package
v0.0.0-...-8ff70ea Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 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 {
	// contains filtered or unexported fields
}

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

func New

func New(w io.Writer) *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{}) 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