Added new logger

Fix thread time counters
This commit is contained in:
Lucio Maranta
2020-01-30 12:28:06 +01:00
parent 2251e63d67
commit 98fe230a78
8 changed files with 207 additions and 244 deletions
+4 -4
View File
@@ -41,7 +41,7 @@ namespace Step.Config
}
catch (XmlException ex)
{
ExceptionManager.Manage(ERROR_LEVEL.FATAL,
ExceptionManager.ManageError(ERROR_LEVEL.FATAL,
"Error while reading file: " + ex.SourceUri +
"\n Error: " + ex.Message,
true
@@ -52,7 +52,7 @@ namespace Step.Config
var message = ex.Message;
if (ex.InnerException != null)
message += "\n"+ex.InnerException.Message;
ExceptionManager.Manage(ERROR_LEVEL.FATAL, message, true);
ExceptionManager.ManageError(ERROR_LEVEL.FATAL, message, true);
}
}
@@ -163,11 +163,11 @@ namespace Step.Config
{
if (e.Severity == XmlSeverityType.Warning)
{
ExceptionManager.Manage(ERROR_LEVEL.WARNING, e.Message, true);
ExceptionManager.ManageError(ERROR_LEVEL.WARNING, e.Message, true);
}
else if (e.Severity == XmlSeverityType.Error)
{
ExceptionManager.Manage(ERROR_LEVEL.FATAL,
ExceptionManager.ManageError(ERROR_LEVEL.FATAL,
// "Error while reading file: " + e.Exception.SourceUri +
"Error while reading XML file \"" + actualFileName + "\" \n\n" + e.Message,
true