Table of Contents

Class LogGlobalSettings

Namespace
Tripous.Logging
Assembly
Tripous.Logging.dll

Global settings for the Logger class.

public class LogGlobalSettings : SettingsBase, INotifyPropertyChanged
Inheritance
LogGlobalSettings
Implements
Inherited Members
Extension Methods

Properties

Active

When false no logs are recorded. Defaults to true.

public bool Active { get; set; }

Property Value

bool

LogFolderPath

Gets or sets the path to the folder where file logs are saved.

public string LogFolderPath { get; set; }

Property Value

string

MaxSizeKiloBytes

Gets or sets how many KB to allow a single log file to grow. Defaults to 512 KB.

public int MaxSizeKiloBytes { get; set; }

Property Value

int

MinLevel

The level of the accepted log. For a log info to be recorded its log level must be greater or equal to this level. See LogLevel enum for the numeric values of each level.

Defaults to Info.

public LogLevel MinLevel { get; set; }

Property Value

LogLevel

RetainDays

Gets or sets how many days to retain in the storage medium. Defaults to 7.

public int RetainDays { get; set; }

Property Value

int

RetainPolicyCounter

Gets or sets after how many writes to check whether it is time to apply the retain policy. Defaults to 100.

public int RetainPolicyCounter { get; set; }

Property Value

int

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler