AzureFileLoggerOptions Třída

Definice

Možnosti protokolování souborů diagnostiky Azure.Options for Azure diagnostics file logging.

public ref class AzureFileLoggerOptions : Microsoft::Extensions::Logging::AzureAppServices::Internal::BatchingLoggerOptions
public ref class AzureFileLoggerOptions : Microsoft::Extensions::Logging::AzureAppServices::BatchingLoggerOptions
public class AzureFileLoggerOptions : Microsoft.Extensions.Logging.AzureAppServices.Internal.BatchingLoggerOptions
public class AzureFileLoggerOptions : Microsoft.Extensions.Logging.AzureAppServices.BatchingLoggerOptions
type AzureFileLoggerOptions = class
    inherit BatchingLoggerOptions
Public Class AzureFileLoggerOptions
Inherits BatchingLoggerOptions
Dědičnost
Microsoft.Extensions.Logging.AzureAppServices.Internal.BatchingLoggerOptions
AzureFileLoggerOptions
Dědičnost
AzureFileLoggerOptions

Konstruktory

AzureFileLoggerOptions()

Vlastnosti

BackgroundQueueSize

Získá nebo nastaví maximální velikost fronty zpráv protokolu na pozadí nebo hodnotu null pro omezení.Gets or sets the maximum size of the background log message queue or null for no limit. Po dosažení maximální velikosti fronty se dosáhne, že se spustí blokování událostí v protokolu.After maximum queue size is reached log event sink would start blocking. Výchozí hodnota je 1000.Defaults to 1000.

(Zděděno od BatchingLoggerOptions)
BatchSize

Získá nebo nastaví maximální počet událostí, které mají být zahrnuty do jedné dávky, nebo hodnota null pro omezení.Gets or sets a maximum number of events to include in a single batch or null for no limit.

(Zděděno od BatchingLoggerOptions)
FileName

Získá nebo nastaví řetězec představující předponu názvu souboru, která se používá k uložení informací o protokolování.Gets or sets a string representing the prefix of the file name used to store the logging information. Aktuální datum ve formátu RRRRMMDD bude přidáno po dané hodnotě.The current date, in the format YYYYMMDD will be added after the given value. Výchozí Diagnostika –.Defaults to diagnostics-.

FileSizeLimit

Získá nebo nastaví čistě kladnou hodnotu představující maximální velikost protokolu v bajtech nebo hodnotu null pro omezení.Gets or sets a strictly positive value representing the maximum log size in bytes or null for no limit. Jakmile je protokol plný, nebudou připojeny žádné další zprávy.Once the log is full, no more messages will be appended. Výchozí hodnota je 10 MB.Defaults to 10MB.

FlushPeriod

Získá nebo nastaví období, po kterém budou protokoly vyprázdněny do úložiště.Gets or sets the period after which logs will be flushed to the store.

(Zděděno od BatchingLoggerOptions)
IncludeScopes

Získá nebo nastaví hodnotu označující, jestli se mají do zprávy zahrnout obory.Gets or sets a value indicating whether scopes should be included in the message. Výchozí hodnota je false .Defaults to false.

(Zděděno od BatchingLoggerOptions)
IsEnabled

Získá nebo nastaví hodnotu označující, zda protokolovací nástroj přijímá a zařadí do fronty zápisy.Gets or sets value indicating if logger accepts and queues writes.

(Zděděno od BatchingLoggerOptions)
RetainedFileCountLimit

Získá nebo nastaví čistě kladnou hodnotu představující maximální počet uchovávaných souborů nebo hodnotu null pro omezení.Gets or sets a strictly positive value representing the maximum retained file count or null for no limit. Výchozí hodnota je 2.Defaults to 2.

Metody

Equals(Object)

Určí, zda se zadaný objekt rovná aktuálnímu objektu.Determines whether the specified object is equal to the current object.

(Zděděno od Object)
GetHashCode()

Slouží jako výchozí funkce hash.Serves as the default hash function.

(Zděděno od Object)
GetType()

Získá Type aktuální instanci.Gets the Type of the current instance.

(Zděděno od Object)
MemberwiseClone()

Vytvoří kopii aktuálního seznamu Object .Creates a shallow copy of the current Object.

(Zděděno od Object)
ToString()

Vrátí řetězec, který představuje aktuální objekt.Returns a string that represents the current object.

(Zděděno od Object)

Platí pro