fancylogger

package module
v0.0.0-...-a09c96e Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2014 License: MIT Imports: 3 Imported by: 0

README

fancylogger

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Success is the color of success
	Success = ansi.ColorCode("green+bh")
	// Info is the color of information
	Info = ansi.ColorCode("white+bh")
	// Error is the color of a meltdown
	Error = ansi.ColorCode("red+bh")
	// Warning means gun it
	Warning = ansi.ColorCode("yellow")
	// Trace will give you tracer rounds
	Trace = ansi.ColorCode("magenta+bh")
	// Reset puts the colors back the way it was
	Reset = ansi.ColorCode("reset")
)

Functions

This section is empty.

Types

type FancyLogger

type FancyLogger struct {
	Trace   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger
}

FancyLogger will give you nicely printed color logs

func NewFancyLogger

func NewFancyLogger(traceHandle io.Writer, infoHandle io.Writer,
	warningHandle io.Writer, errorHandle io.Writer) *FancyLogger

NewFancyLogger will set up a fancy logger instance, but requires all of outputs to be defined

Jump to

Keyboard shortcuts

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