logrus

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

This package provides a concrete implementation of LogProvider using Logrus

Index

Constants

This section is empty.

Variables

View Source
var JSONFormatter = &logrus.JSONFormatter{
	DisableTimestamp: false,
	TimestampFormat:  time.RFC3339Nano,
}
View Source
var RecommendedFormatter = &logrus.TextFormatter{
	FullTimestamp:   true,
	DisableColors:   true,
	TimestampFormat: time.RFC3339Nano,
}

Functions

func LogProvider

func LogProvider(nextProvider providers.LogProvider, config Config) (l providers.LogProvider, err error)

Types

type Config

type Config struct {
	Output    io.Writer
	Level     string
	Formatter logrus.Formatter
}

Jump to

Keyboard shortcuts

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