logging

package
v0.0.0-...-abf550e Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logging

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

Logging abstracts all log facilities simplifying its usage other libraries that need to log something will use this to have just one way to do the things

func New

func New(outputPaths, errorOutputPaths []string, debug bool) (*Logging, error)

New returns a loggin instance, if no output paths passed it will default to stderr

func (*Logging) Debug

func (l *Logging) Debug(source, msg string, fields ...zap.Field)

Debug writes a debug trace

func (*Logging) Error

func (l *Logging) Error(source, msg string, fields ...zap.Field)

Error writes an error trace

func (*Logging) Info

func (l *Logging) Info(source, msg string, fields ...zap.Field)

Info writes an info trace

func (*Logging) Logger

func (l *Logging) Logger() *zap.Logger

Logger returns the raw logger

Jump to

Keyboard shortcuts

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