public static LogEventData FromLogEvent(LogEvent logEvent, DatabaseAgent agent) { LogEventData retVal = LogEventData.New(agent); retVal.Category = logEvent.Category; retVal.Computer = logEvent.Computer; retVal.EventID = logEvent.EventID; retVal.Message = logEvent.Message; retVal.Severity = logEvent.Severity.ToString(); retVal.TimeOccurred = logEvent.TimeOccurred; retVal.Source = logEvent.Source; retVal.User = logEvent.User; return(retVal); }
public static LogEventData New(DatabaseAgent agent) { return(LogEventData.New <LogEventData>(agent)); }
public static LogEventData New() { return(LogEventData.New <LogEventData>()); }