colorconsole

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PanicLevelColor = color.New(color.FgRed)
	ErrorLevelColor = color.New(color.FgHiRed)
	DebugLevelColor = color.New(color.FgCyan)
	WarnLevelColor  = color.New(color.FgYellow)
	InfoLevelColor  = color.New(color.FgGreen)
)

Functions

This section is empty.

Types

type ColorConsole

type ColorConsole struct {
	*listener.BaseListener
	// contains filtered or unexported fields
}

func New

func New(s ShowType) *ColorConsole

func NewWithOption

func NewWithOption(s ShowType, o *glog.Option) *ColorConsole

func (*ColorConsole) Close

func (self *ColorConsole) Close()

func (*ColorConsole) Event

func (self *ColorConsole) Event(e glog.Event)

type ShowType

type ShowType int
const (
	ShowTypeDefault ShowType = iota
	ShowTypeFore
)

Jump to

Keyboard shortcuts

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