Skip to content
Snippets Groups Projects
Commit 3127d1ec authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Add a handler for RoboSharp debug messages.

Refers to #3, #11, #15
parent c8553828
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ using NLog; ...@@ -14,6 +14,7 @@ using NLog;
using NLog.Config; using NLog.Config;
using NLog.Targets; using NLog.Targets;
using RoboSharp; using RoboSharp;
using Debugger = RoboSharp.Debugger;
// NOTE on naming conventions: variables containing "Path" are strings, variables containing // NOTE on naming conventions: variables containing "Path" are strings, variables containing
// "Dir" are DirectoryInfo objects! // "Dir" are DirectoryInfo objects!
...@@ -79,6 +80,11 @@ namespace ATxService ...@@ -79,6 +80,11 @@ namespace ATxService
CreateEventLog(); CreateEventLog();
LoadSettings(); LoadSettings();
CreateIncomingDirectories(); CreateIncomingDirectories();
Debugger.Instance.DebugMessageEvent += HandleDebugMessage;
}
private void HandleDebugMessage(object sender, Debugger.DebugMessageArgs e) {
Log.Debug("(RoboSharp Debugger) {0}", e.Message);
} }
/// <summary> /// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment