BlobLoggerProvider 類別

定義

ILoggerProvider 實作,該實作會藉由以批次將訊息附加至 Azure Blob 來儲存他們。The ILoggerProvider implementation that stores messages by appending them to Azure Blob in batches.

public ref class BlobLoggerProvider : Microsoft::Extensions::Logging::AzureAppServices::BatchingLoggerProvider
[Microsoft.Extensions.Logging.ProviderAlias("AzureAppServicesBlob")]
public class BlobLoggerProvider : Microsoft.Extensions.Logging.AzureAppServices.BatchingLoggerProvider
type BlobLoggerProvider = class
    inherit BatchingLoggerProvider
Public Class BlobLoggerProvider
Inherits BatchingLoggerProvider
繼承
BlobLoggerProvider
屬性

建構函式

BlobLoggerProvider(IOptionsMonitor<AzureBlobLoggerOptions>)

建立 BlobLoggerProvider 的新執行個體Creates a new instance of BlobLoggerProvider

屬性

IsEnabled

檢查是否已啟用佇列。Checks if the queue is enabled.

(繼承來源 BatchingLoggerProvider)

方法

CreateLogger(String)

使用指定的 categoryName 建立 Microsoft.Extensions.Logging.AzureAppServices.BatchingLoggerCreates a Microsoft.Extensions.Logging.AzureAppServices.BatchingLogger with the given categoryName.

(繼承來源 BatchingLoggerProvider)
Dispose() (繼承來源 BatchingLoggerProvider)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IntervalAsync(TimeSpan, CancellationToken)

等待指定的 TimeSpanWait for the given TimeSpan.

(繼承來源 BatchingLoggerProvider)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

ISupportExternalScope.SetScopeProvider(IExternalScopeProvider)

設定此提供者的範圍。Sets the scope on this provider.

(繼承來源 BatchingLoggerProvider)

適用於