EventLoggerFactoryExtensions.AddEventLog Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
AddEventLog(ILoggingBuilder) |
Menambahkan pencatat peristiwa bernama 'EventLog' ke pabrik. |
AddEventLog(ILoggingBuilder, EventLogSettings) |
Menambahkan pencatat peristiwa. Gunakan |
AddEventLog(ILoggingBuilder, Action<EventLogSettings>) |
Menambahkan pencatat peristiwa. Gunakan |
AddEventLog(ILoggingBuilder)
Menambahkan pencatat peristiwa bernama 'EventLog' ke pabrik.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddEventLog(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventLog (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddEventLog : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddEventLog (builder As ILoggingBuilder) As ILoggingBuilder
Parameter
- builder
- ILoggingBuilder
Argumen metode ekstensi.
Mengembalikan
ILoggingBuilder sehingga panggilan tambahan dapat dirangkai.
Berlaku untuk
AddEventLog(ILoggingBuilder, EventLogSettings)
Menambahkan pencatat peristiwa. Gunakan settings
untuk mengaktifkan pengelogan untuk LogLeveltertentu.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddEventLog(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Microsoft::Extensions::Logging::EventLog::EventLogSettings ^ settings);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventLog (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.EventLog.EventLogSettings settings);
static member AddEventLog : Microsoft.Extensions.Logging.ILoggingBuilder * Microsoft.Extensions.Logging.EventLog.EventLogSettings -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddEventLog (builder As ILoggingBuilder, settings As EventLogSettings) As ILoggingBuilder
Parameter
- builder
- ILoggingBuilder
Argumen metode ekstensi.
- settings
- EventLogSettings
Mengembalikan
ILoggingBuilder sehingga panggilan tambahan dapat dirangkai.
Berlaku untuk
AddEventLog(ILoggingBuilder, Action<EventLogSettings>)
Menambahkan pencatat peristiwa. Gunakan configure
untuk mengaktifkan pengelogan untuk LogLeveltertentu.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddEventLog(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::EventLog::EventLogSettings ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventLog (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.EventLog.EventLogSettings> configure);
static member AddEventLog : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.EventLog.EventLogSettings> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddEventLog (builder As ILoggingBuilder, configure As Action(Of EventLogSettings)) As ILoggingBuilder
Parameter
- builder
- ILoggingBuilder
Argumen metode ekstensi.
- configure
- Action<EventLogSettings>
Delegasi untuk mengonfigurasi EventLogSettings.
Mengembalikan
ILoggingBuilder sehingga panggilan tambahan dapat dirangkai.