예제 #1
0
파일: log.go 프로젝트: steenzout/gol
func init() {
	fmt.Println("init():start")
	Log = manager_simple.New(LogWorkers)

	f := filter_severity.New(field_severity.Info)
	formatter := formatters.Text{}
	logger := logger_simple.New(f, formatter, os.Stdout)
	Log.Register("main", logger)

	Log.Run()
	Log.Send(gol.NewInfo("message", "main.Log has been configured"))
	fmt.Println("init():end")
}
예제 #2
0
func (s *ManagerTestSuite) SetupTest() {
	s.manager = manager_simple.New(Capacity)
}