log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package log implements utility methods for logging in a colorful manner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorfulLogFormatter

type ColorfulLogFormatter struct{}

ColorfulLogFormatter is the default logger for brig.

func (*ColorfulLogFormatter) Format

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

Format logs a single entry according to our formatting ideas.

type Writer

type Writer struct {
	// Level determines the severity for all messages.
	Level logrus.Level
}

Writer is an io.Writer that writes everything to logrus.

func (*Writer) Write

func (l *Writer) Write(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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