public void TestLogEngineExecuteRule()
        {
            LogEngine engine = new LogEngine();
            LogEntry _log = new LogEntry() { Title = "Test Log", Message = "Testing the log engine sample", Category = "test", EventID = "", Severity = "", Priority = "urgent" };

            string[] _args = { "Execute" , "Example", "Simple" , "sample"};
            bool _value = false;

            _value = engine.ReflectBusinessAction(@"C:\Users\Csommers\Documents\visual studio 2010\Projects\BusinessRuleLibrary\BusinessRuleLib\bin\Debug\BusinessRuleLib.dll", "BusinessRuleLib.SearchLogMessage", _log, _args);

            Assert.IsNotNull(_value);
        }
        public void SubmitLog(Log log)
        {
            LogEntry logentry = new LogEntry();

            logentry.Category = log.Category;
            logentry.EventID = log.EventID;
            logentry.Message = log.Message;
            logentry.Priority = log.Priority;
            logentry.Severity = log.Severity;
            logentry.Title = log.Title;

            LogEngine logengine = new LogEngine(logentry);
            logengine.Process();
        }