Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 456 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 456 Bytes

log4go

Very useful log package,this log4go support compress base on google orig log4go,the compress log package name like *.zip.

Useage:

go get github.com/xianlezheng/log4go

Demo

package main
import (
	log "github.com/xianlezheng/log4go/log4go"
)

const (
	XML_FILE_PATH    = "./log4go.xml"
)

func Init(){
   log.LoadConfiguration(XML_FILE_PATH)
}

func main(){
   log.Info("%s RowsAffected is :%d", insertSql, count)
}

Have fun

:)