console

package
v2.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() log.Handler

New create a new Console instance

Types

type Console

type Console struct {
	// contains filtered or unexported fields
}

Console is an instance of the console logger

func (*Console) BeforeWriting

func (h *Console) BeforeWriting(e *log.Entry) error

BeforeWriting handles the log entry

func (*Console) Write

func (h *Console) Write(bytes []byte) error

Write handles the log entry

Jump to

Keyboard shortcuts

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