Esempio n. 1
0
 /// <inheritdoc />
 public void LogException(Exception ex, string message               = null, string identity = null, string title = null,
                          [CallerFilePath] string customCallerPath   = null,
                          [CallerMemberName] string customCallerName = null,
                          [CallerLineNumber] int customLineNumber    = 0)
 {
     _logging.G9LogException(ex, message, identity, title, customCallerPath, customCallerName, customLineNumber);
 }
        public void CheckInsertThousandLogWithCustomConfigAndEncryption()
        {
            // Test for 1 million log
            for (var index = 0; index < 1000; index++)
            {
                // Event
                Logging.G9LogEvent($"Event {index}", $"Event {index}", $"Event {index}");
                // Information
                Logging.G9LogInformation($"Information {index}", $"Information {index}", $"Information {index}");
                // Warning
                Logging.G9LogWarning($"Warning {index}", $"Warning {index}", $"Warning {index}");
                // Error
                Logging.G9LogError($"Error {index}", $"Error {index}", "Error");
                // Exception And Inner Exception
                Logging.G9LogException(
                    new Exception("Exception", new Exception("Exception", new Exception("Exception"))), $"Exception {index}",
                    $"Exception {index}", $"Exception {index}");
            }
            ;

            Thread.Sleep(10000);
        }