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

Look in the "var" subdir for config files

Since the executable will be located in the service base directory it
makes most sense to check in the `var` subdir for the config by default.

Fixes #58
parent 8f551e77
No related branches found
No related tags found
No related merge requests found
using System; using System;
using System.IO;
using ATxCommon.Serializables; using ATxCommon.Serializables;
using NLog; using NLog;
using NLog.Config; using NLog.Config;
...@@ -14,7 +15,7 @@ namespace ATxConfigTest ...@@ -14,7 +15,7 @@ namespace ATxConfigTest
var logLevel = LogLevel.Info; var logLevel = LogLevel.Info;
var logPrefix = ""; var logPrefix = "";
var baseDir = AppDomain.CurrentDomain.BaseDirectory; var baseDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "var");
if (args.Length > 0) if (args.Length > 0)
baseDir = args[0]; baseDir = args[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment