EventLogLogger Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EventLogLogger(String) |
Initializes a new instance of the EventLogLogger class. |
EventLogLogger(String, EventLogSettings) |
Initializes a new instance of the EventLogLogger class. |
EventLogLogger(String, EventLogSettings, IExternalScopeProvider) |
Initializes a new instance of the EventLogLogger class. |
EventLogLogger(String)
Initializes a new instance of the EventLogLogger class.
public:
EventLogLogger(System::String ^ name);
public EventLogLogger (string name);
new Microsoft.Extensions.Logging.EventLog.EventLogLogger : string -> Microsoft.Extensions.Logging.EventLog.EventLogLogger
Public Sub New (name As String)
Parameters
- name
- String
The name of the logger.
Applies to
EventLogLogger(String, EventLogSettings)
Initializes a new instance of the EventLogLogger class.
public:
EventLogLogger(System::String ^ name, Microsoft::Extensions::Logging::EventLog::EventLogSettings ^ settings);
public EventLogLogger (string name, Microsoft.Extensions.Logging.EventLog.EventLogSettings settings);
new Microsoft.Extensions.Logging.EventLog.EventLogLogger : string * Microsoft.Extensions.Logging.EventLog.EventLogSettings -> Microsoft.Extensions.Logging.EventLog.EventLogLogger
Public Sub New (name As String, settings As EventLogSettings)
Parameters
- name
- String
The name of the logger.
- settings
- EventLogSettings
The EventLogSettings.
Applies to
EventLogLogger(String, EventLogSettings, IExternalScopeProvider)
Initializes a new instance of the EventLogLogger class.
public:
EventLogLogger(System::String ^ name, Microsoft::Extensions::Logging::EventLog::EventLogSettings ^ settings, Microsoft::Extensions::Logging::IExternalScopeProvider ^ externalScopeProvider);
public EventLogLogger (string name, Microsoft.Extensions.Logging.EventLog.EventLogSettings settings, Microsoft.Extensions.Logging.IExternalScopeProvider externalScopeProvider);
new Microsoft.Extensions.Logging.EventLog.EventLogLogger : string * Microsoft.Extensions.Logging.EventLog.EventLogSettings * Microsoft.Extensions.Logging.IExternalScopeProvider -> Microsoft.Extensions.Logging.EventLog.EventLogLogger
Public Sub New (name As String, settings As EventLogSettings, externalScopeProvider As IExternalScopeProvider)
Parameters
- name
- String
The name of the logger.
- settings
- EventLogSettings
The EventLogSettings.
- externalScopeProvider
- IExternalScopeProvider
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for