Very useful log package,this log4go support compress base on google orig log4go,the compress log package name like *.zip.
go get github.com/xianlezheng/log4go
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)
}
:)