LoggerConfiguration Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configuration to use when default logging is enabled. This is set only once per process and any change after wont be effective.
public class LoggerConfiguration
type LoggerConfiguration = class
Public Class LoggerConfiguration
- Inheritance
-
LoggerConfiguration
Constructors
LoggerConfiguration(Int32, Int32, Boolean) |
Properties
IsPiiAllowed |
Whether to allow PII in the logs (default is true). Set to true to allow Pii in logs. Set to false to mask Pii. |
MaxLogFileCount |
Maximum number of logfiles to store. Default is 2. The logfile name format changes when the value is >= 3. Setting maxLogFileCount to 0 will disable logging. Setting to -1 indicate no maximum for file count. All other negative values are invalid |
MaxLogFileSizeMb |
Maximum size for a logfile in MB. Default is 20 MB. Setting maxLogFileSizeMb to 0 will disable logging. Setting to -1 indicate no maximum size limit. All other negative values are invalid. Max allowed limit is 1024 |