logger

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug = iota
	LevelInfo
	LevelWarn
	LevelError
	LevelFatal

	FileInfoLeastLevel = LevelError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Interface
	// contains filtered or unexported fields
}

********************* Common

func (*Common) Debug

func (output *Common) Debug(format string, v ...interface{})

func (*Common) Error

func (output *Common) Error(format string, v ...interface{})

func (*Common) Fatal

func (output *Common) Fatal(format string, v ...interface{})

func (*Common) Info

func (output *Common) Info(format string, v ...interface{})

func (*Common) Init

func (output *Common) Init(level int, normal, err io.Writer)

func (*Common) Warn

func (output *Common) Warn(format string, v ...interface{})

type Interface

type Interface interface {
	Debug(format string, v ...interface{})
	Info(format string, v ...interface{})
	Warn(format string, v ...interface{})
	Error(format string, v ...interface{})
	Fatal(format string, v ...interface{})
}

********************* Interface

type ToNull

type ToNull struct {
	Interface
}

********************* toNull

func (*ToNull) Debug

func (output *ToNull) Debug(format string, v ...interface{})

func (*ToNull) Error

func (output *ToNull) Error(format string, v ...interface{})

func (*ToNull) Fatal

func (output *ToNull) Fatal(format string, v ...interface{})

func (*ToNull) Info

func (output *ToNull) Info(format string, v ...interface{})

func (*ToNull) Warn

func (output *ToNull) Warn(format string, v ...interface{})

Jump to

Keyboard shortcuts

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