-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EventLog config in AppSettings #36
Comments
I am also struggling to configure this sink from configuration file. I have created a custom event source. I can write to it by using
but I am not able to write to the source using configuration. Can someone give a suggested configuration file that will work? |
Any update on this? I have the same issue:
Does NOT workFrom
From
DOES workFrom
Setup
Also
|
What does work is after removing the JSON block specifying the using section
From appsettings.json
From Program.cs
Setup
Once it has executed, reopen Windows Event Viewer, as the source folder does not appear immediately. |
Has anything more been found on this? I too can only configure eventlog from the program.cs instead of through the appsettings like the rest. I have tried both with and without the using[] in the appsettings. |
Looks like you need to set the "manageEventSource" arg to true in order for appSettings to work from scratch, I assume otherwise the logged events cannot be added as the source doesn't exist.
|
From the main page Serilog EventLog there is this:
|
I want to configure the Sink in Config
but it fails. Whereas
works, sort of. I do get an odd event written however
The text was updated successfully, but these errors were encountered: