writer

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

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

CLI is a concurrent output writer to terminal.

func NewCLI

func NewCLI() *CLI

NewCLI returns a new CLI concurrent log writer.

func (*CLI) Write

func (w *CLI) Write(data []byte, level levels.Level)

WriteString writes an output to the underlying file

type Writer

type Writer interface {
	// Write writes the data to an output writer.
	Write(data []byte, level levels.Level)
}

Writer type writes data to an output type.

Jump to

Keyboard shortcuts

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