aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Logging
diff options
context:
space:
mode:
authorRoy <roy.mail.net@gmail.com>2018-02-10 17:27:37 +0200
committerRoy <roy.mail.net@gmail.com>2018-02-10 17:27:37 +0200
commitf8e1ff79cc2fa09b52093c6e029392b3456ad8bb (patch)
treefc72fecd6564b49a4b7787c0b4161bcb45edc758 /Software/Visual_Studio/Tango.Logging
parent07e686eb253ffd29f36dbe530b3a17633e02b353 (diff)
downloadTango-f8e1ff79cc2fa09b52093c6e029392b3456ad8bb.tar.gz
Tango-f8e1ff79cc2fa09b52093c6e029392b3456ad8bb.zip
Added dispensers support on technician module.
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging')
-rw-r--r--Software/Visual_Studio/Tango.Logging/LogManager.cs25
1 files changed, 9 insertions, 16 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/LogManager.cs b/Software/Visual_Studio/Tango.Logging/LogManager.cs
index 43f40fcbe..b97058bfe 100644
--- a/Software/Visual_Studio/Tango.Logging/LogManager.cs
+++ b/Software/Visual_Studio/Tango.Logging/LogManager.cs
@@ -184,30 +184,23 @@ namespace Tango.Logging
//[DebuggerHidden]
private static void LoggingThreadMethod()
{
- while (_logs.Count > 0)
+ while (_isStarted)
{
- LogItemBase log;
-
- if (_logs.TryDequeue(out log))
+ while (_logs.Count > 0)
{
- if (log != null)
+ LogItemBase log;
+
+ if (_logs.TryDequeue(out log))
{
- _loggers.Where(x => x.Enabled && !x.Immediate).ToList().ForEach(x => x.OnLog(log));
+ if (log != null)
+ {
+ _loggers.Where(x => x.Enabled && !x.Immediate).ToList().ForEach(x => x.OnLog(log));
+ }
}
}
Thread.Sleep(10);
}
-
- Thread.Sleep(400);
-
- if (_logs.Count > 0)
- {
- LoggingThreadMethod();
- return;
- }
-
- _isStarted = false;
}
/// <summary>