/log4go

log4go package similar to log4j for the Go programming language

Primary LanguageGoMIT LicenseMIT

log4go

Please see http://log4go.googlecode.com/

Installation:

  • Run go get github.com/goldenspider/log4go

  • Run go install github.com/goldenspider/log4go

Example

package main

import (
	. "github.com/goldenspider/log4go"
)

func test() string {
	return "good luck"
}

func main() {
	//default use config.toml from current dir
	//console and file
	//StartLogServer("config.toml")

	StartLogServer()
	defer StopLogServer()

	LogInfof("This is good start. %s", test())
	LogWarn(test(), " Are you ready now? ", "OK")
}

output

image