private static LoggingEvent GetLoggingEvent()
{
LoggingEventData loggingEventData1 = new LoggingEventData();
loggingEventData1.LoggerName = typeof (PatternParserTests).FullName;
loggingEventData1.Level = Level.Warn;
loggingEventData1.Message = "Tw.o.Dots";
loggingEventData1.Domain = "ReallySimpleApp";
loggingEventData1.LocationInfo = new LocationInfo(typeof (PatternParserTests).Name, "Main", "Class1.cs", "29");
//Completely arbitary
loggingEventData1.ThreadName = Thread.CurrentThread.Name;
loggingEventData1.TimeStamp = DateTime.Today;
loggingEventData1.ExceptionString = "Exception occured here";
loggingEventData1.UserName = "TestUser";
LoggingEventData loggingEventData = loggingEventData1;
// LoggingEvents occur at distinct points in time
LoggingEvent loggingEvent = new LoggingEvent(
loggingEventData.LocationInfo.GetType(),
LogManager.CreateRepository(Guid.NewGuid().ToString()),
loggingEventData.LoggerName,
loggingEventData.Level,
loggingEventData.Message,
new Exception("This is the exception"));
return loggingEvent;
}