/// <summary> /// Initializes a new instance of the <see cref="LoggingInstrumentationProvider"/> class. /// </summary> /// <param name="performanceCountersEnabled"><code>true</code> if performance counters should be updated.</param> /// <param name="eventLoggingEnabled"><code>true</code> if event log entries should be written.</param> /// <param name="applicationInstanceName">The application instance name.</param> public LoggingInstrumentationProvider(bool performanceCountersEnabled, bool eventLoggingEnabled, string applicationInstanceName) : base(performanceCountersEnabled, eventLoggingEnabled, new AppDomainNameFormatter(applicationInstanceName)) { this.eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="LoggingInstrumentationListener"/> class. /// </summary> /// <param name="performanceCountersEnabled"><code>true</code> if performance counters should be updated.</param> /// <param name="eventLoggingEnabled"><code>true</code> if event log entries should be written.</param> /// <param name="wmiEnabled"><code>true</code> if WMI events should be fired.</param> public LoggingInstrumentationListener(bool performanceCountersEnabled, bool eventLoggingEnabled, bool wmiEnabled) : base(performanceCountersEnabled, eventLoggingEnabled, wmiEnabled, new AppDomainNameFormatter()) { this.eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="ValidationInstrumentationProvider"/> class. /// </summary> /// <param name="performanceCountersEnabled"><code>true</code> if performance counters should be updated.</param> /// <param name="eventLoggingEnabled"><code>true</code> if event log entries should be written.</param> /// <param name="nameFormatter">Creates unique name for each <see cref="PerformanceCounter"/> instance.</param> public ValidationInstrumentationProvider(bool performanceCountersEnabled, bool eventLoggingEnabled, IPerformanceCounterNameFormatter nameFormatter) : base(performanceCountersEnabled, eventLoggingEnabled, nameFormatter) { this.eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultCryptographyEventLogger"/> class, specifying whether /// logging to the event log is allowed. /// </summary> /// <param name="performanceCountersEnabled"><code>true</code> if updating performance counters is allowed, <code>false</code> otherwise.</param> /// <param name="eventLoggingEnabled"><code>true</code> if writing to the event log is allowed, <code>false</code> otherwise.</param> /// <param name="applicationInstanceName">The application name to use with performance counters.</param> public DefaultCryptographyEventLogger(bool performanceCountersEnabled, bool eventLoggingEnabled, string applicationInstanceName) : base(performanceCountersEnabled, eventLoggingEnabled, new AppDomainNameFormatter(applicationInstanceName)) { eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="LoggingInstrumentationProvider"/> class. /// </summary> /// <param name="instanceName">The instance name.</param> /// <param name="performanceCountersEnabled"><code>true</code> if performance counters should be updated.</param> /// <param name="eventLoggingEnabled"><code>true</code> if event log entries should be written.</param> /// <param name="applicationInstanceName">The application instance name.</param> public MyLoggingInstrumentationProvider(string instanceName, bool performanceCountersEnabled, bool eventLoggingEnabled, string applicationInstanceName) : base(instanceName, performanceCountersEnabled, eventLoggingEnabled, new AppDomainNameFormatter(applicationInstanceName)) { this.eventLogEntryFormatter = new EventLogEntryFormatter("Enterprise Library Logging Application Block"); //Resources.BlockName); }
public DefaultExceptionHandlingEventLogger( bool performanceCountersEnabled, bool eventLoggingEnabled, bool wmiEnabled, string applicationInstanceName) : base(performanceCountersEnabled, eventLoggingEnabled, wmiEnabled, new AppDomainNameFormatter(applicationInstanceName)) { this.eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="CachingInstrumentationProvider"/> class. /// </summary> /// <param name="instanceName">The name of the <see cref="CacheManager"/> instance this instrumentation listener is created for.</param> /// <param name="performanceCountersEnabled"><b>true</b> if performance counters should be updated.</param> /// <param name="eventLoggingEnabled"><b>true</b> if event log entries should be written.</param> /// <param name="nameFormatter">The <see cref="IPerformanceCounterNameFormatter"/> that is used to creates unique name for each <see cref="PerformanceCounter"/> instance.</param> public CachingInstrumentationProvider(string instanceName, bool performanceCountersEnabled, bool eventLoggingEnabled, IPerformanceCounterNameFormatter nameFormatter) : base(new[] { instanceName }, performanceCountersEnabled, eventLoggingEnabled, nameFormatter) { this.instanceName = instanceName; counterInstanceName = CreateInstanceName(instanceName); eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultSecurityEventLogger"/> class, specifying whether /// logging to the event log and firing WMI events is allowed. /// </summary> /// <param name="eventLoggingEnabled"><code>true</code> if writing to the event log is allowed, <code>false</code> otherwise.</param> /// <param name="wmiEnabled"><code>true</code> if firing WMI events is allowed, <code>false</code> otherwise.</param> public DefaultSecurityEventLogger(bool eventLoggingEnabled, bool wmiEnabled) : base((string)null, false, eventLoggingEnabled, wmiEnabled, null) { eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="CachingInstrumentationListener"/> class. /// </summary> /// <param name="instanceName">The name of the <see cref="CacheManager"/> instance this instrumentation listener is created for.</param> /// <param name="performanceCountersEnabled"><b>true</b> if performance counters should be updated.</param> /// <param name="eventLoggingEnabled"><b>true</b> if event log entries should be written.</param> /// <param name="wmiEnabled"><b>true</b> if WMI events should be fired.</param> /// <param name="nameFormatter">The <see cref="IPerformanceCounterNameFormatter"/> that is used to creates unique name for each <see cref="PerformanceCounter"/> instance.</param> public CachingInstrumentationListener(string instanceName, bool performanceCountersEnabled, bool eventLoggingEnabled, bool wmiEnabled, IPerformanceCounterNameFormatter nameFormatter) : base(new string[] { instanceName }, performanceCountersEnabled, eventLoggingEnabled, wmiEnabled, nameFormatter) { this.instanceName = instanceName; this.counterInstanceName = CreateInstanceName(instanceName); this.eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
public DefaultDataEventLogger(bool eventLoggingEnabled) : base((string)null, false, eventLoggingEnabled, (IPerformanceCounterNameFormatter)null) { this.eventLogEntryFormatter = (IEventLogEntryFormatter) new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="ValidationInstrumentationListener"/> class. /// </summary> /// <param name="performanceCountersEnabled"><code>true</code> if performance counters should be updated.</param> /// <param name="eventLoggingEnabled"><code>true</code> if event log entries should be written.</param> /// <param name="wmiEnabled"><code>true</code> if WMI events should be fired.</param> /// <param name="nameFormatter">Creates unique name for each <see cref="PerformanceCounter"/> instance.</param> public ValidationInstrumentationListener(bool performanceCountersEnabled, bool eventLoggingEnabled, bool wmiEnabled, IPerformanceCounterNameFormatter nameFormatter) : base(performanceCountersEnabled, eventLoggingEnabled, wmiEnabled, nameFormatter) { this.eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultCryptographyEventLogger"/> class, specifying whether /// logging to the event log and firing WMI events is allowed. /// </summary> /// <param name="eventLoggingEnabled"><b>true</b> if writing to the event log is allowed, <b>false</b> otherwise.</param> /// <param name="wmiEnabled"><b>true</b> if firing WMI events is allowed, <b>false</b> otherwise.</param> public DefaultCryptographyEventLogger(bool eventLoggingEnabled, bool wmiEnabled) : base((string)null, false, eventLoggingEnabled, wmiEnabled, null) { eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultLoggingEventLogger"/> class, specifying whether /// logging to the event log is allowed. /// </summary> /// <param name="eventLoggingEnabled"><code>true</code> if writing to the event log is allowed, <code>false</code> otherwise.</param> public DefaultLoggingEventLogger(bool eventLoggingEnabled) : base((string)null, false, eventLoggingEnabled, null) { this.eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }
/// <summary> /// Initializes a new instance of the <see cref="DefaultExceptionHandlingEventLogger"/> class, specifying whether /// logging to the event log and firing WMI events is allowed. /// </summary> /// <param name="eventLoggingEnabled"><code>true</code> if writing to the event log is allowed, <code>false</code> otherwise.</param> /// <param name="wmiEnabled"><code>true</code> if firing WMI events is allowed, <code>false</code> otherwise.</param> public DefaultExceptionHandlingEventLogger(bool eventLoggingEnabled, bool wmiEnabled) : base((string)null, false, eventLoggingEnabled, wmiEnabled, null) { this.eventLogEntryFormatter = new EventLogEntryFormatter(Resources.BlockName); }