By arshad - 9/15/2021
Hi Due to some technical reasons we have separated logs and errors files into two individual files using serilog . In this case , logs and errors from component space trace is not getting logged .
Please refer the attached serilog configuration which i have .
I have also followed the below link to enable trace , which works good when i had the same configuration with name as "Serilog:Async" , but my problem is i have split the individual logger for log and error using the name "Logger", so in this case component space is not working . https://www.componentspace.com/Forums/7936/Enabling-SAML-Trace?Keywords=serilog
Can anyone help me resolve this issue ?
|
By ComponentSpace - 9/15/2021
Please try the following.
Modify the ExampleServiceProvider project's appsettings.json with your Serilog configuration as shown above.
Add the package references as shown above.
Take a look at the information log.
I followed these steps and the logging worked.
If there's still an issue, I suggest you zip up the modified ExampleServiceProvider project, without the binaries, and send it to [email protected] so we can rebuild the project and reproduce the issue.
If the logging works with the modified ExampleServiceProvider, as it should, compare it with your application to see what's different regarding the Serilog setup.
|
|