cherrylog

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 3 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(err *cherry.Err, optionalLogger ...logrus.FieldLogger) *logrus.Entry

Log(err).Errorf("unable to destroy Earth due Batman issues") Log(err, logger).Errorf("not enough energy units in the Death Star")

Types

type LogrusAdapter

type LogrusAdapter struct {
	*logrus.Entry
}

LogrusAdapter -- log origin and returning errors through logrus

func NewLogrusAdapter

func NewLogrusAdapter(e *logrus.Entry) *LogrusAdapter

NewLogrusAdpater -- for more convenient usage

func (*LogrusAdapter) Log

func (a *LogrusAdapter) Log(origin error, returning *cherry.Err)

Jump to

Keyboard shortcuts

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