debug

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSubystems        = errors.New("no subsystems specified")
	ErrDuplicateSubsystem = errors.New("duplicate subsystem")
)

Functions

This section is empty.

Types

type Debug

type Debug struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(filename, format string) (*Debug, error)

func (*Debug) Critical

func (d *Debug) Critical(id int, format string, args ...interface{})

func (*Debug) Dbg

func (d *Debug) Dbg(id int, format string, args ...interface{})

func (*Debug) DisableDebug

func (d *Debug) DisableDebug()

func (*Debug) DisableTrace

func (d *Debug) DisableTrace()

func (*Debug) EnableDebug

func (d *Debug) EnableDebug()

func (*Debug) EnableTrace

func (d *Debug) EnableTrace()

func (*Debug) Error

func (d *Debug) Error(id int, format string, args ...interface{})

func (*Debug) Info

func (d *Debug) Info(id int, format string, args ...interface{})

func (*Debug) Log

func (d *Debug) Log(id int, format string, args ...interface{})

func (*Debug) Register

func (d *Debug) Register(id int, name string) error

func (*Debug) T

func (d *Debug) T(id int, format string, args ...interface{})

func (*Debug) Warn

func (d *Debug) Warn(id int, format string, args ...interface{})

Jump to

Keyboard shortcuts

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