agent/logger/eventlog_windows.go
func (r *eventLogReceiver) ReceiveMessage(message string, level seelog.LogLevel, context seelog.LogContextInterface) error {
	switch level {
	case seelog.DebugLvl, seelog.InfoLvl:
		return eventLog.Info(eventLogID, message)
	case seelog.WarnLvl:
		return eventLog.Warning(eventLogID, message)
	case seelog.ErrorLvl, seelog.CriticalLvl:
		return eventLog.Error(eventLogID, message)
	}
	return nil
}
func (r *eventLogReceiver) ReceiveMessage(message string, level seelog.LogLevel, context seelog.LogContextInterface) error {
	switch level {
	case seelog.DebugLvl, seelog.InfoLvl:
		return eventLog.Info(eventLogID, message)
	case seelog.WarnLvl:
		return eventLog.Warning(eventLogID, message)
	case seelog.ErrorLvl, seelog.CriticalLvl:
		return eventLog.Error(eventLogID, message)
	}
	return nil
}
func ( r * eventLogReceiver ) ReceiveMessage ( message string , level seelog . LogLevel , context seelog . LogContextInterface ) error { switch level { case seelog . DebugLvl , seelog . InfoLvl : return eventLog . Info ( eventLogID , message ) case seelog . WarnLvl : return eventLog . Warning ( eventLogID , message ) case seelog . ErrorLvl , seelog . CriticalLvl : return eventLog . Error ( eventLogID , message ) } return nil }
// ReceiveMessage receives a log line from seelog and emits it to the Windows event log
ReceiveMessage receives a log line from seelog and emits it to the Windows event log