log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLevel

func ParseLevel(level string, defaultLevel zerolog.Level) zerolog.Level

ParseLevel parses a string which represents a log level and returns a zerolog.Level.

Types

type Writer

type Writer interface {
	io.Writer
	Reopen() error
}

Writer is an io.Writer with Reopen() method.

func New

func New(w io.Writer) Writer

New returns a new Writer which inherits w and does nothing on Reopen().

func OpenFile

func OpenFile(name string) (Writer, error)

OpenFile opens a file and returns a Writer which writes to the file and reopens the file on Reopen().

Jump to

Keyboard shortcuts

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