Log.cs
changeset 1979 cf610012e16d
parent 1936 83060fe7965d
child 1999 dfab19314f7d
     1.1 --- a/Log.cs	Tue Jan 30 08:53:32 2018 +0100
     1.2 +++ b/Log.cs	Tue Jan 30 09:59:14 2018 +0100
     1.3 @@ -61,6 +61,22 @@
     1.4          }
     1.5  
     1.6          /// <summary>
     1.7 +        /// Adds the given sensitive text to the pEp for Outlook log only
     1.8 +        /// when sensitive data logging is enabled.
     1.9 +        /// </summary>
    1.10 +        /// <param name="text">The sensitive text to add to the log.</param>
    1.11 +        public static void SensitiveData(string text)
    1.12 +        {
    1.13 +            if ((text != null) &&
    1.14 +                (Globals.ThisAddIn != null) &&
    1.15 +                (Globals.ThisAddIn.Settings.IsSensitiveDataLoggingEnabled))
    1.16 +            {
    1.17 +                Log.Write(DateTime.Now.ToString("HH:mm:ss.fff") + " |S| " + text);
    1.18 +            }
    1.19 +            return;
    1.20 +        }
    1.21 +
    1.22 +        /// <summary>
    1.23          /// Adds the given warning text to the pEp for Outlook log.
    1.24          /// </summary>
    1.25          /// <param name="text">The warning text to add to the log.</param>