log

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

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

This section is empty.

Types

type AppLogger

type AppLogger interface {
	Log(flag Flag, msg, logPosition string, v ...interface{})
	Debug(msg string, v ...interface{})
	Info(msg string, v ...interface{})
	Warn(msg string, v ...interface{})
	Error(msg string, v ...interface{})
}

func NewLogger

func NewLogger(_logPath, _loggerName string) AppLogger

type Flag

type Flag int
const (
	DEBUG Flag = 1
	INFO  Flag = 2
	WARN  Flag = 3
	ERROR Flag = 4
)

func (Flag) Code

func (f Flag) Code() int

func (Flag) Text

func (f Flag) Text() string

Jump to

Keyboard shortcuts

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