samhuangszu / log4go

Logging package similar to log4j for the Go programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# This is an fork maintained by AlexStocks.

Please see http://log4go.googlecode.com/ for more log4go usages. My personal
package( github.com/AlexStocks/goext/log) wrappered log4go functions  further
more.

Installation:
- Run `goinstall github.com/AlexStocks/log4go`

Usage:
- Add the following import:
import l4g "github.com/AlexStocks/log4go"



Function list
* Output colorful terminal log string by log level

* Output json log

* Add maxbackup choice in examples.xml to delete out of date log file

* Output escape query string safety

* Add filename to every log line

* Create log path if log path does not exist

  

About

Logging package similar to log4j for the Go programming language

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 100.0%