Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public static LogEventData New(DatabaseAgent agent)
 {
     return(LogEventData.New <LogEventData>(agent));
 }
Esempio n. 3
0
 public static LogEventData New()
 {
     return(LogEventData.New <LogEventData>());
 }