示例#1
0
func NewConsoleLogWriter() *consoleLogWriter {
	ret := &consoleLogWriter{
		writer: log4go.NewConsoleLogWriter(),
	}
	return ret
}
示例#2
0
func init() {
	log4go.Close()
	log4go.AddFilter("test", log4go.DEBUG, log4go.NewConsoleLogWriter())
}
示例#3
0
func init() {
	// TODO: should really log to stderr and not stdout
	log4go.Global.AddFilter("stdout", log4go.FINEST, log4go.NewConsoleLogWriter())
}
示例#4
0
func init() {
	log4go.AddFilter("stdout", log4go.WARNING, log4go.NewConsoleLogWriter())
}
示例#5
0
func NewConsoleLogWriter() LogWriter {
	return log4go.NewConsoleLogWriter()
}