toplog

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2017 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DebugLevel LogLevel = "D"
	InfoLevel           = "I"
	WarnLevel           = "W"
	ErrorLevel          = "E"
)
View Source
const MAX_LOG_FILES = 1000

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func Info

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

func InitDebug

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

func Open

func Open()

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.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

Jump to

Keyboard shortcuts

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