Bagikan melalui


EventLoggerFactoryExtensions.AddEventLog Metode

Definisi

Overload

AddEventLog(ILoggingBuilder)

Menambahkan pencatat peristiwa bernama 'EventLog' ke pabrik.

AddEventLog(ILoggingBuilder, EventLogSettings)

Menambahkan pencatat peristiwa. Gunakan settings untuk mengaktifkan pengelogan untuk LogLeveltertentu.

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Menambahkan pencatat peristiwa. Gunakan configure untuk mengaktifkan pengelogan untuk LogLeveltertentu.

AddEventLog(ILoggingBuilder)

Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs

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)

Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs

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.

Mengembalikan

ILoggingBuilder sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk

AddEventLog(ILoggingBuilder, Action<EventLogSettings>)

Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs
Sumber:
EventLoggerFactoryExtensions.cs

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.

Berlaku untuk