Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
LoggerConfiguration Struct Reference

Configuration to use when default logging is enabled. More...

#include <src/api/mip/diagnostic_configuration.h>

Public Attributes

bool isPiiAllowed = true
 Whether to allow PII in the logs (default is true).
 
int maxLogFileCount = 2
 Maximum number of logfiles to store (default is 2).
 
int maxLogFileSizeMb = 20
 Maximum size for a logfile in MB (default is 20).
 

Detailed Description

Configuration to use when default logging is enabled.

This is set only once per process and any later change will be ignored.

Definition at line 80 of file diagnostic_configuration.h.

Member Data Documentation

◆ isPiiAllowed

bool LoggerConfiguration::isPiiAllowed = true

Whether to allow PII in the logs (default is true).

Set to true to allow Pii in logs. Set to false to mask Pii. OII data will not be masked.

Definition at line 83 of file diagnostic_configuration.h.

◆ maxLogFileCount

int LoggerConfiguration::maxLogFileCount = 2

Maximum number of logfiles to store (default is 2).

The valid range for maxLogFileCount is -1 to INT_MAX. Set to 0 to disable logging. Set to -1 to indicate no limit.

Definition at line 82 of file diagnostic_configuration.h.

◆ maxLogFileSizeMb

int LoggerConfiguration::maxLogFileSizeMb = 20

Maximum size for a logfile in MB (default is 20).

The valid range for maxLogFileSizeMb is -1 through 1024. Set to 0 to disable logging. Set to -1 to indicate no limit.

Definition at line 81 of file diagnostic_configuration.h.


The documentation for this struct was generated from the following file: