debug

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type D

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

D represents a debug-specific logger that writes to stderr.

func New

func New(prefix string) *D

New returns a new debug instance.

func (*D) Debug

func (d *D) Debug(msg string, ctx ...interface{})

Debug logs a debug-level message.

func (*D) Error

func (d *D) Error(msg string, ctx ...interface{})

Error logs an error-level message.

func (*D) Off

func (d *D) Off()

Off disables the debug logger.

func (*D) On

func (d *D) On()

On enables the debug logger.

Jump to

Keyboard shortcuts

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