From d87881183d74fa692b598f170dd820adeaf54fca Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 14 Mar 2018 19:02:38 +0200 Subject: Working on event handling ! --- .../EventLogging/IEventLogger.cs | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs new file mode 100644 index 000000000..645bd4a95 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL.Entities; +using Tango.BL.Enumerations; +using Tango.PMR.Diagnostics; + +namespace Tango.MachineStudio.Common.EventLogging +{ + public interface IEventLogger + { + /// + /// Logs the specified machine event. + /// + /// The machine event. + void Log(MachinesEvent machineEvent); + + /// + /// Logs the specified event type. + /// + /// Type of the event. + /// The message. + void Log(EventTypes eventType, String message); + + /// + /// Logs the specified hardware event. + /// + /// The hardware event. + void Log(Event hardwareEvent); + + /// + /// Logs the specified exception using the . + /// + /// The exception. + void Log(Exception exception); + + /// + /// Logs the specified message using the . + /// + /// The message. + void Log(String message); + } +} -- cgit v1.3.1