golog

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

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

Go to latest
Published: Jul 15, 2016 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

golog

log for golang

Documentation

Index

Constants

View Source
const (
	LevelTRC = iota
	LevelDBG
	LevelINF
	LevelWRN
	LevelERR
)

Variables

View Source
var (
	ErrLevelInvalid = errors.New("Level invalid. Level must be TRC|DBG|INF|WRN|ERR")
)

Functions

func DBG

func DBG(format string, v ...interface{})

func DBGf

func DBGf(format string, v ...interface{})

func ERR

func ERR(format string, v ...interface{})

func ERRf

func ERRf(format string, v ...interface{})

func FAT

func FAT(format string, v ...interface{})

func Fatalf

func Fatalf(format string, v ...interface{})

func Fini

func Fini()

func GetLevel

func GetLevel() int

func INF

func INF(format string, v ...interface{})

func INFf

func INFf(format string, v ...interface{})

func Init

func Init(logurl string) (err error)

@logurl

   logurl used to determin to which place and how the log will be write, generate format is "[schema]://[uri],[key=value]...", for example
	file:///home/logs/demo,[rotate=day|none],[level=TRC|DBG|INF|WRN|ERR]

func ParseLevel

func ParseLevel(lv string) (int, bool)

func SetLevel

func SetLevel(level int)

func TRC

func TRC(format string, v ...interface{})

func TRCf

func TRCf(format string, v ...interface{})

func WRN

func WRN(format string, v ...interface{})

func WRNf

func WRNf(format string, v ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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