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 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Variables func Fatalf(format string, args ...interface{}) func Fatalln(args ...interface{}) func Flush() func Http(r *http.Request, reqId, host string, startTime int64, retCode int, ...) func PrintDefaults() func SetLogLevel(level int) func Shutdown() func V(level int64) decision Constants ¶ This section is empty. Variables ¶ View Source var Flag *flag.FlagSet 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. Source Files ¶ View all Source files buffer.go log.go print.go rotate.go var.go Click to show internal directories. Click to hide internal directories.