colorformatter

package module
v0.0.0-...-886ec8c Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: MIT Imports: 3 Imported by: 1

README

colorformatter

colorformatter for Logrus -- like TextFormatter, but color indicates log level, no timestamps

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Colored

type Colored struct{}

Colored returns a new struct implementing logrus.Formatter

func New

func New() Colored

New returns a new Colored formatter

func (Colored) Format

func (f Colored) Format(entry *logrus.Entry) ([]byte, error)

Format renders a single log entry

Jump to

Keyboard shortcuts

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