logger

package
v0.0.0-...-276f339 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Setup

func Setup(_cfg *TConfig)

func TestLog

func TestLog()

Types

type ILogWriter

type ILogWriter interface {
	Open()
	Recv(_line string)
	Flush()
	Close()
}

type ILogger

type ILogger interface {
	Printf(string, ...interface{})
	Fine(string, ...interface{})
	Debug(string, ...interface{})
	Trace(string, ...interface{})
	Info(string, ...interface{})
	Warn(string, ...interface{})
	Error(string, ...interface{})
	Critical(string, ...interface{})
}

func GetLogger

func GetLogger(_name string) ILogger

type TConfig

type TConfig struct {
	App     string
	Root    string
	Level   TLogLevel
	Source  bool
	Console bool
	GenFile bool
}

type TLogLevel

type TLogLevel int
const (
	LLFINE TLogLevel = iota
	LLDEBUG
	LLTRACE
	LLINFO
	LLWARN
	LLERROR
	LLCRITICAL
)

Jump to

Keyboard shortcuts

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