func (s *LoggerTestSuite) TestSendNilFormatter() { // reset logger built by SetupTest s.logger = golsys.New("udp", ":10001", syslog.LOG_INFO, "test", nil) assert.Error(s.T(), s.logger.Send(gol.NewEmergency("message", "unknown"))) }
func (s *LoggerTestSuite) SetupTest() { s.logger = golsys.New("udp", ":10001", syslog.LOG_INFO, "test", &formatters.Text{}) }
func init() { log = mfsyslog.New("udp", "127.0.0.1:32376", syslog.LOG_EMERG, "example.go", &formatters.Text{}) }