diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-17 20:21:16 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-17 20:21:16 +0300 |
| commit | 0f5d23b3a4d38e5a68436acf3a96822d59249f46 (patch) | |
| tree | b5d56df08bdcfa3651dc5dd893f474d40e4a9171 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging | |
| parent | c5a54597a0a02da5b3cf942fff95586a9dfe836d (diff) | |
| download | Tango-0f5d23b3a4d38e5a68436acf3a96822d59249f46.tar.gz Tango-0f5d23b3a4d38e5a68436acf3a96822d59249f46.zip | |
*1. Implement Real Progress on Machine Emulator.
*2. Add ParameterIgnore to Observable Entity validation props.
*3. Block logging of similar continous job status events from embedded. (Add counter for embedded logs).
*6. Make font size larger on Research module.
*7. Open jobs on double click.
*9. Add default sorting to job events. (NOT WORKING)
*10. Add tool tips for job progress.
*12. Test PPC Job Progress
*13. Fix issue with inversed color conversion.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging')
2 files changed, 10 insertions, 3 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs index 0a4af6218..b33b771ae 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs @@ -234,7 +234,7 @@ namespace Tango.MachineStudio.Common.EventLogging /// </summary> /// <param name="eventType">Type of the event.</param> /// <param name="message">The message.</param> - public void Log(EventTypes eventType, string message) + public void Log(EventTypes eventType, string message, bool write_to_db = true) { Init(); @@ -244,7 +244,14 @@ namespace Tango.MachineStudio.Common.EventLogging machineEvent.EventType = _eventTypesGuids[eventType]; machineEvent.EventTypeGuid = machineEvent.EventType.Guid; - Log(machineEvent); + if (write_to_db) + { + Log(machineEvent); + } + else + { + NewLog?.Invoke(this, machineEvent); + } } /// <summary> diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs index ce599a398..ceb399d24 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs @@ -30,7 +30,7 @@ namespace Tango.MachineStudio.Common.EventLogging /// </summary> /// <param name="eventType">Type of the event.</param> /// <param name="message">The message.</param> - void Log(EventTypes eventType, String message); + void Log(EventTypes eventType, String message, bool write_to_db = true); /// <summary> /// Logs the specified hardware event. |
