File logging on ASP.NET Core