Writing logs to file #206

Closed
opened 2026-01-29 16:33:47 +00:00 by claunia · 1 comment
Owner

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

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
claunia added the question label 2026-01-29 16:33:47 +00:00
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#206