Added logging on fatal crashes

Moved logs to a seperate Logs folder
This commit is contained in:
Robert committed 2019-11-05 20:25:13 +01:00
1 parent 7de98fd02b
commit d0e369c653
6 files changed
+17 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ namespace Artemis.Core.Ninject
private static readonly ILogger _logger = new LoggerConfiguration()
.Enrich.FromLogContext()
.Enrich.WithDemystifiedStackTraces()
.WriteTo.File("Artemis log-.txt",
.WriteTo.File("Logs/Artemis log-.txt",
rollingInterval: RollingInterval.Day,
outputTemplate: "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] [{SourceContext:l}] {Message:lj}{NewLine}{Exception}")
.CreateLogger();
+1
View File
@@ -94,6 +94,7 @@ namespace Artemis.Core.Services
private void SurfaceOnException(ExceptionEventArgs args)
{
_logger.Warning("Surface threw e");
throw args.Exception;
}