diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-03-14 19:02:38 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-03-14 19:02:38 +0200 |
| commit | d87881183d74fa692b598f170dd820adeaf54fca (patch) | |
| tree | d41721b5c5f9c7e8335bb5e65d7a16a20b4d901d /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs | |
| parent | 748d18fe3bfa60a586de151c3bb0d1fd608b1e13 (diff) | |
| download | Tango-d87881183d74fa692b598f170dd820adeaf54fca.tar.gz Tango-d87881183d74fa692b598f170dd820adeaf54fca.zip | |
Working on event handling !
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/IEventLogger.cs | 45 |
1 files changed, 45 insertions, 0 deletions
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 + { + /// <summary> + /// Logs the specified machine event. + /// </summary> + /// <param name="machineEvent">The machine event.</param> + void Log(MachinesEvent machineEvent); + + /// <summary> + /// Logs the specified event type. + /// </summary> + /// <param name="eventType">Type of the event.</param> + /// <param name="message">The message.</param> + void Log(EventTypes eventType, String message); + + /// <summary> + /// Logs the specified hardware event. + /// </summary> + /// <param name="hardwareEvent">The hardware event.</param> + void Log(Event hardwareEvent); + + /// <summary> + /// Logs the specified exception using the <see cref="EventTypes.ApplicationException"/>. + /// </summary> + /// <param name="exception">The exception.</param> + void Log(Exception exception); + + /// <summary> + /// Logs the specified message using the <see cref="EventTypes.ApplicationInformation"/>. + /// </summary> + /// <param name="message">The message.</param> + void Log(String message); + } +} |
