toplog

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 78

Documentation

Index

Constants

View Source
const (
	// Forground color
	BLACK  = "\033[30"
	RED    = "\033[31"
	GREEN  = "\033[32"
	YELLOW = "\033[33"
	BLUE   = "\033[34"
	PURPLE = "\033[35"
	CYAN   = "\033[36"
	WHITE  = "\033[37"

	BRIGHT = ";1m"
	DIM    = ";2m"

	WHITE_TEXT_CYAN_BG = "\033[37m\033[46m"
)
View Source
const (
	DebugLevel  LogLevel = "D"
	InfoLevel            = "I"
	WarnLevel            = "W"
	ErrorLevel           = "E"
	MarkerLevel          = "M"
)
View Source
const WindowHeaderHelpText = WHITE + BRIGHT + "ENTER" + WHITE + DIM + ":close  " +
	WHITE + BRIGHT + "UP" + WHITE + DIM + "/" + WHITE + BRIGHT + "DOWN" + WHITE + DIM + " arrow to scroll  " +
	WHITE + BRIGHT + "a" + WHITE + DIM + ":auto open toggle"
View Source
const WindowHeaderSize = 2

const MAX_LOG_FILES = 1000

View Source
const WindowHeaderText = "Top Internal Log View"

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, a ...interface{})

func Error

func Error(msg string, a ...interface{})

func GetMsgDeltas added in v0.8.2

func GetMsgDeltas() (int, int, int, int)

func Info

func Info(msg string, a ...interface{})

func InitDebug

func InitDebug(g *gocui.Gui, masterUI MasterUIInterface)

func IsDebugEnabled added in v0.8.3

func IsDebugEnabled() bool

func Open

func Open()

func SetAutoShowErrorEnabled added in v0.8.2

func SetAutoShowErrorEnabled(isEnabled bool)

func SetDebugEnabled added in v0.7.3

func SetDebugEnabled(isEnabled bool)

func Warn

func Warn(msg string, a ...interface{})

Types

type DebugWidget

type DebugWidget struct {
	// contains filtered or unexported fields
}

func NewDebugWidget

func NewDebugWidget(masterUI MasterUIInterface, name string) *DebugWidget

func (*DebugWidget) Layout

func (w *DebugWidget) Layout(g *gocui.Gui) error

func (*DebugWidget) Name

func (w *DebugWidget) Name() string

type LogLevel

type LogLevel string

type LogLine added in v0.7.3

type LogLine struct {
	// contains filtered or unexported fields
}

func NewLogLine added in v0.7.3

func NewLogLine(level LogLevel, message string, timestamp time.Time) *LogLine

type MasterUIInterface added in v0.7.8

type MasterUIInterface interface {
	SetCurrentViewOnTop(*gocui.Gui) error
	GetCurrentView(g *gocui.Gui) *gocui.View
	CloseView(managerUI.Manager) error
	CloseViewByName(viewName string) error
	LayoutManager() managerUI.LayoutManagerInterface
	GetHeaderSize() int
	GetAlertSize() int
	GetTopMargin() int
	SetHeaderMinimize(g *gocui.Gui, minimizeHeader bool)
	IsPrivileged() bool
	GetDisplayPaused() bool
	SetDisplayPaused(paused bool)
	GetTargetDisplay() string
}

Jump to

Keyboard shortcuts

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