Amazon.Runtime.Internal.Util.Logger.InfoFormat C# (CSharp) Метод

InfoFormat() публичный Метод

public InfoFormat ( string messageFormat ) : void
messageFormat string
Результат void
        public void InfoFormat(string messageFormat, params object[] args)
        {
            foreach (InternalLogger logger in loggers)
            {
                if (logger.IsEnabled && logger.IsInfoEnabled)
                    logger.InfoFormat(messageFormat, args);
            }
        }

Usage Example

Пример #1
0
 /// <summary>
 /// Wipes all user data cached locally, including identity id, session
 /// credentials, dataset metadata, and all records. Any data that hasn't been
 /// synced will be lost. This method is usually used when customer logs out.
 /// <param name="wipeCredentialsAndID">Wipe Credentials and IdentityID. Defaults as true</param>
 /// </summary>
 public void WipeData(bool wipeCredentialsAndID = true)
 {
     Local.WipeData();
     if (wipeCredentialsAndID)
     {
         cognitoCredentials.Clear();
         _logger.InfoFormat("All datasets and records have been wiped");
     }
     else
     {
         _logger.InfoFormat("All data has been wiped");
     }
 }
All Usage Examples Of Amazon.Runtime.Internal.Util.Logger::InfoFormat