Example #1
0
 public EventLogFactory(JasperServiceConfiguration settings)
 {
     _settings = settings;
     if (!EventLog.SourceExists(_settings.Name))
     {
         EventLog.CreateEventSource(_settings.Name, "Application");
     }
 }
Example #2
0
 public EventLogWriter(JasperServiceConfiguration settings, string name)
 {
     _settings = settings;
     _name     = name;
 }
Example #3
0
 public EventLogFactoryConfigurator(JasperServiceConfiguration settings)
 {
     _settings = settings;
 }
Example #4
0
 public static void UseEventLog(this HostConfigurator configurator, JasperServiceConfiguration settings)
 {
     HostLogger.UseLogger(new EventLogFactoryConfigurator(settings));
 }