public LogProvider(ILogProviderHost host, IConnectionParams connectParams, Factory factory) : base(host, factory, connectParams, new DejitteringParams() { JitterBufferSize = 25 } ) { using (trace.NewFrame) { try { eventLogIdentity = EventLogIdentity.FromConnectionParams(connectParams); StartLiveLogThread("EventLog listening thread"); } catch (Exception e) { trace.Error(e, "Failed to initialize Windows Event Log reader. Disposing what has been created so far."); Dispose(); throw; } } }
string ILogProviderFactory.GetUserFriendlyConnectionName(IConnectionParams connectParams) { return("Windows Event Log: " + EventLogIdentity.FromConnectionParams(connectParams).ToUserFriendlyString()); }
public string GetUserFriendlyConnectionName(IConnectionParams connectParams) { return("Windows Event Log: " + EventLogIdentity.FromConnectionParams(connectParams).ToUserFriendlyString()); }