Skip to content

Commit

Permalink
Rough out progression save/load, versioned offset info, custom keybin…
Browse files Browse the repository at this point in the history
…ds, better logging
  • Loading branch information
ronbrogan committed Feb 4, 2022
1 parent 5b3bc6c commit 006be3e
Show file tree
Hide file tree
Showing 16 changed files with 1,439 additions and 100 deletions.
8 changes: 7 additions & 1 deletion src/InfiniteTool/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
Expand All @@ -22,10 +23,12 @@ public partial class App : Application
{
private IHost _host;

public static string LogLocation = Path.Combine(Environment.CurrentDirectory, "log.txt");

public App()
{
var serilogLogger = new LoggerConfiguration()
.WriteTo.File("log.txt")
.WriteTo.File(LogLocation)
.CreateLogger();

AppDomain.CurrentDomain.FirstChanceException += (s, e) =>
Expand All @@ -35,6 +38,9 @@ public App()

Console.SetOut(new TextWriterLogger(serilogLogger));

serilogLogger.Information("AppInfo: " + Assembly.GetExecutingAssembly().ToString());


_host = Host.CreateDefaultBuilder()
.ConfigureServices(services =>
{
Expand Down
Loading

0 comments on commit 006be3e

Please sign in to comment.