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