Commit a22e599c authored by Alexander Dietsch's avatar Alexander Dietsch

LWSimulator (Console)

-Changed the log level option
parent 995ac668
......@@ -61,7 +61,7 @@ namespace LWSimulatorCons
"i|input=", "set input file",
v => inputPath = v },
{
"l|log-level=", "set the level of log; -1 - All messages and debug messages; 0 - All messages; 1 - No errors or warnings; 2 - no log output but result",
"l|log-level=", "set the level of log; -1 - All messages and debug messages; 0 - All messages; 1 - Only result, errors or warnings; 2 - no log output but result",
v => {
if (!tryParseValue(v,out logLevel))
{
......@@ -298,7 +298,7 @@ namespace LWSimulatorCons
{
if (logLevel == 2 && !s.StartsWith("Code returned") && !s.StartsWith("Syntax"))
return;
if (logLevel == 1 && (s.StartsWith("WARNING") || s.StartsWith("ERROR") || s.StartsWith("DEBUG")))
if (logLevel == 1 && !(s.StartsWith("WARNING") || s.StartsWith("ERROR") || s.StartsWith("Code returned") || s.StartsWith("Syntax")))
return;
if (logLevel == 0 && s.StartsWith("DEBUG"))
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment