logrus

package
v0.0.0-...-73f3cc7 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package logrus is a thin wrapper around logrus, providing a way to instantiate it with formatter and

Example
//nolint because it forces the interface to be validated
var log logger.Logger
log = logrus.New("text", "info", nil)

log.Debug("won't print")
log.Error("will print")
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	logrus.FieldLogger
}

func New

func New(formatter, level string, out io.Writer) *Logger

func (*Logger) WithField

func (l *Logger) WithField(field string, value interface{}) metalog.Logger

func (*Logger) WithFields

func (l *Logger) WithFields(fields map[string]interface{}) metalog.Logger

Jump to

Keyboard shortcuts

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