PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/ConsoleLogWriter_Manual.go

https://code.google.com/p/log4go/
Go | 13 lines | 10 code | 3 blank | 0 comment | 0 complexity | 1acb1ef6df397b61fa00b6d602ba2607 MD5 | raw file
 1package main
 2
 3import (
 4	"time"
 5)
 6
 7import l4g "code.google.com/p/log4go"
 8
 9func main() {
10	log := l4g.NewLogger()
11	log.AddFilter("stdout", l4g.DEBUG, l4g.NewConsoleLogWriter())
12	log.Info("The time is now: %s", time.Now().Format("15:04:05 MST 2006/01/02"))
13}