Skip to content

Commit

Permalink
Updated application information and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Timthreetwelve committed Aug 30, 2022
1 parent 30c4541 commit f4d5387
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions HWiNFOVSBViewer/HWiNFOVSBViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<UseWPF>true</UseWPF>
<AssemblyVersion>0.2.1.0</AssemblyVersion>
<FileVersion>0.2.1</FileVersion>
<Version>$(AssemblyVersion)</Version>
<Description>HWiNFO VSB Viewer</Description>
<Product>HWiNFO VSB Viewer</Product>
<Copyright>Copyright © $([System.DateTime]::UtcNow.Year) Tim Kennedy</Copyright>
<ApplicationIcon>Images\H-in-blue-cloud.ico</ApplicationIcon>
</PropertyGroup>
Expand Down
7 changes: 4 additions & 3 deletions HWiNFOVSBViewer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ public void ReadSettings()
Title = $"{AppInfo.AppName} - {AppInfo.TitleVersion}";

// Log the version, build date and commit id
log.Info($"{AppInfo.AppName} {AppInfo.AppVersion} is starting up");
log.Debug($"{AppInfo.AppName} Build date: {BuildInfo.BuildDateObj:f}");
log.Debug($"{AppInfo.AppName} Commit ID: {BuildInfo.CommitIDString} ");
log.Info($"{AppInfo.AppName} ({AppInfo.AppProduct}) {AppInfo.AppVersion} is starting up");
log.Info($"{AppInfo.AppCopyright}");
log.Debug($"{AppInfo.AppName} Build date: {BuildInfo.BuildDateString} UTC");
log.Debug($"{AppInfo.AppName} Commit ID: {BuildInfo.CommitIDString}");

// Log the .NET version, app framework and OS platform
string version = Environment.Version.ToString();
Expand Down

0 comments on commit f4d5387

Please sign in to comment.