Class LogServiceOptions
Provides the user's log settings, which LogService applies.
public class LogServiceOptions
- Inheritance
-
LogServiceOptions
- Inherited Members
Properties
AutoFlush
Gets or sets a value indicating whether the file is flushed at every line. The default is true.
public bool AutoFlush { get; set; }
Property Value
Enabled
Gets or sets a value indicating whether Start(LogServiceOptions, bool) applies the options; off, it does nothing, as where many apps share one process, such as tests. The default is true.
public bool Enabled { get; set; }
Property Value
LogAnonymous
Gets or sets a value indicating whether identifying values are redacted, or null for yes.
public bool? LogAnonymous { get; set; }
Property Value
- bool?
LogEventNames
Gets or sets the names of the events to log, for the app to apply; LogService does not filter by them. The default is none.
public string[] LogEventNames { get; set; }
Property Value
- string[]
LogToFile
Gets or sets a value indicating whether the log goes to the file. The default is true.
public bool LogToFile { get; set; }
Property Value
MinLogLevel
Gets or sets the lowest level logged; in JSON, an unknown level reads as Information. The default is Information.
[JsonConverter(typeof(LogLevelJsonConverter))]
public LogLevel MinLogLevel { get; set; }