logger

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(description string)

Types

type Handler

type Handler interface {
	Err(code string, des string)
	Debug(des string)
	Info(des string)
	EnableDebug(b bool)
}

func New

func New(appname string) (Handler, error)

type Logger

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

func (*Logger) Debug

func (l *Logger) Debug(description string)

func (*Logger) EnableDebug

func (l *Logger) EnableDebug(b bool)

func (*Logger) Err

func (l *Logger) Err(code string, description string)

func (*Logger) Info

func (l *Logger) Info(description string)

Jump to

Keyboard shortcuts

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