cli

package
v0.0.0-...-15ea2ad Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: BSD-3-Clause Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FancyFormatter is the default formatter for fancy messages.
	CliFormatter = log.MustStringFormatter(`[{{formatColorString "magentafg" (formatTime .Timestamp "2006-01-02 15:04:05")}}] [{{formatColorString "magentafg" .ShortFile}}] {{formatColor .LevelColor .LevelIcon .LevelTitle "\t>"}} {{ .Message }}{{ .ParsedFields }}`)
)

Functions

This section is empty.

Types

type Cli

type Cli struct {
	Writer    io.Writer
	Formatter log.Formatter
}

func NewCli

func NewCli() *Cli

func (*Cli) Write

func (c *Cli) Write(e *log.Entry, calldepth int) error

Jump to

Keyboard shortcuts

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