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

Log version information on startup.

parent 9d701b7f
No related branches found
No related tags found
No related merge requests found
using System;
using System.Diagnostics;
using System.Management;
using System.Reflection;
using ATxCommon;
using ATxCommon.Monitoring;
using NLog;
......@@ -29,6 +30,10 @@ namespace ATxDiagnostics
logConfig.LoggingRules.Add(logRuleConsole);
LogManager.Configuration = logConfig;
var commonAssembly = Assembly.GetAssembly(typeof(ATxCommon.Monitoring.Cpu));
var commonVersionInfo = FileVersionInfo.GetVersionInfo(commonAssembly.Location);
Log.Info("ATxCommon library version: {0}", commonVersionInfo.ProductVersion);
Log.Debug("Free space on drive [C:]: " + Conv.BytesToString(SystemChecks.GetFreeDriveSpace("C:")));
var cpu = new Cpu {
Interval = 250,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment