mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Writing logs to file #206
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RogerDodger123 on GitHub (Sep 12, 2018).
Originally assigned to: @GregorBiswanger on GitHub.
Has anyone managed to write logs to file. I see that the way it works is the electron app parses the data that is output by the dotnet core application. This obviously outputs content to the window in which you run the app using
dotnet electronize start.In order to write out actual logs to file when the app is published maybe edit the main.js to use something like electron-log to write to file apposed to the console?
Thanks
@GregorBiswanger commented on GitHub (Sep 25, 2018):
Hello @RogerDodger123
you can use the default ASP.NET Core possibility:
https://andrewlock.net/creating-a-rolling-file-logging-provider-for-asp-net-core-2-0/
Best,
Gregor