jlog

package module
v0.0.0-...-8ec708b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

README

jlog

a logging tool similar to glog style, integrates log compression and rollback functionalities

eg:

func main(){

	for i:=0;i<1000;i++{
		jlog.V(0).Infoln("log index:",i)
	}
	jlog.Shutdown()

}

go build

./main jlog -logDir=./eg

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Fatalf

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

func Fatalln

func Fatalln(args ...interface{})

func Flush

func Flush()

func Http

func Http(r *http.Request, reqId, host string, startTime int64, retCode int, spitTime string, size int64, errMsg error)

func PrintDefaults

func PrintDefaults()

func SetLogLevel

func SetLogLevel(level int)

func Shutdown

func Shutdown()

func V

func V(level int64) decision

Types

This section is empty.

Jump to

Keyboard shortcuts

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