console

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StderrAdapter

func StderrAdapter() logger.Adapter

StderrAdapter returns a logger.Adapter implementation which prints log messages to stderr.

func StdoutAdapter

func StdoutAdapter() logger.Adapter

StdoutAdapter returns a logger.Adapter implementation which prints log messages to stdout.

Types

type WriterPrinter

type WriterPrinter struct {
	Writer io.Writer
}

WriterPrinter implements printer.Printer by adapting io.Writer. Should be used with care, because it discards all errors returned during writing.

func (WriterPrinter) Println

func (p WriterPrinter) Println(skipCallerFrames int, msg string)

Println prints the msg using io.Writer. Errors are discarded.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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