func (s *SyslogSink) sendLogMessage(logMessage *events.LogMessage) error { _, err := s.syslogWriter.Write(messagePriorityValue(logMessage), logMessage.GetMessage(), logMessage.GetSourceType(), logMessage.GetSourceInstance(), *logMessage.Timestamp) return err }
func (ctlo *ConsoleTailedLogsOutputter) rawDebugLogCallback(log *events.LogMessage) { timeString := time.Unix(0, log.GetTimestamp()).Format("01/02 15:04:05.00") logOutput := fmt.Sprintf("%s [%s|%s] %s", timeString, log.GetSourceType(), log.GetSourceInstance(), log.GetMessage()) ctlo.outputChan <- logOutput }