diff --git a/SpineViewer/App.xaml.cs b/SpineViewer/App.xaml.cs index af068ba..32b1040 100644 --- a/SpineViewer/App.xaml.cs +++ b/SpineViewer/App.xaml.cs @@ -86,6 +86,7 @@ namespace SpineViewer Encoding = System.Text.Encoding.UTF8, Layout = "${date:format=yyyy-MM-dd HH\\:mm\\:ss} - ${level:uppercase=true} - ${processid} - ${callsite-filename:includeSourcePath=false}:${callsite-linenumber} - ${message}", AutoFlush = true, + CreateDirs = true, FileName = "${basedir}/logs/app.log", ArchiveFileName = "${basedir}/logs/app.{#}.log", ArchiveNumbering = NLog.Targets.ArchiveNumberingMode.Rolling, diff --git a/SpineViewerCLI/SpineViewerCLI.cs b/SpineViewerCLI/SpineViewerCLI.cs index 8615ad9..cfd845a 100644 --- a/SpineViewerCLI/SpineViewerCLI.cs +++ b/SpineViewerCLI/SpineViewerCLI.cs @@ -44,6 +44,7 @@ namespace SpineViewerCLI Encoding = System.Text.Encoding.UTF8, Layout = "${date:format=yyyy-MM-dd HH\\:mm\\:ss} - ${level:uppercase=true} - ${processid} - ${callsite-filename:includeSourcePath=false}:${callsite-linenumber} - ${message}", AutoFlush = true, + CreateDirs = true, FileName = "${basedir}/logs/cli.log", ArchiveFileName = "${basedir}/logs/cli.{#}.log", ArchiveNumbering = NLog.Targets.ArchiveNumberingMode.Rolling,