logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorWriter

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

ErrorWriter writes with log.Error.

func NewErrWriter

func NewErrWriter(entry *log.Entry) ErrorWriter

NewErrWriter creates a new log writer.

func (ErrorWriter) Write

func (w ErrorWriter) Write(p []byte) (n int, err error)

type Writer

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

Writer writes with log.Info.

func NewWriter

func NewWriter(entry *log.Entry) Writer

NewWriter creates a new log writer.

func (Writer) Write

func (t Writer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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