Skip to content

Commit

Permalink
fix: write logs to current execution directory
Browse files Browse the repository at this point in the history
Closes #72
  • Loading branch information
wgnf committed Apr 8, 2022
1 parent 50fbc5d commit ca0244c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CsvProc9000/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private static ILogger ConfigureSerilogLogging(IConfiguration configuration)
.Enrich.FromLogContext()
.WriteTo.Console()
.WriteTo.File(
"./logs/application-log.log",
$"{AppDomain.CurrentDomain.BaseDirectory}/logs/application-log.log",
fileSizeLimitBytes: null,
retainedFileCountLimit: null,
rollingInterval: RollingInterval.Day)
Expand Down

0 comments on commit ca0244c

Please sign in to comment.