goklog

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

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 6 Imported by: 5

README

goklog

Golang version of KLog

Documentation

Index

Constants

View Source
const (
	NORMAL_LEVEL = iota
	ERROR_LEVEL
	VITAL
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KLog

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

func GetInstance

func GetInstance() *KLog

func (*KLog) Info

func (klog *KLog) Info(title string, text string, level int)

func (*KLog) LogError

func (klog *KLog) LogError(title string, err error)

func (*KLog) LogIn

func (klog *KLog) LogIn(title string, text string)

func (*KLog) LogNormal

func (klog *KLog) LogNormal(title string, text string)

func (*KLog) LogVital

func (klog *KLog) LogVital(title string, text string)

func (*KLog) SetListener

func (klog *KLog) SetListener(listener ListenerFunc)

func (*KLog) ToggleInspector

func (klog *KLog) ToggleInspector()

type ListenerFunc

type ListenerFunc func(string)

Jump to

Keyboard shortcuts

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