2022-05-10 09:14:00.0084 [App:01] [947fed7d8c48a0dd0a91945f35e6d413] [INFO ] [.NET ThreadPool Worker] xxxxxxx.M3OrderExport - Job finished succeeded.
Is there any way to stop this specific message from logging? Not everything from M3OrderExport… but this specific message with “Job finished succeeded.”
Litium 8
You can filter out messages with Nlog, for example in Litium 8 they do one of those examples for you
<filters>
<when condition="not equals('${environment:ASPNETCORE_ENVIRONMENT}','Development')" action="Ignore" /></filters>
Im pretty sure you can use something like this
<when condition="not contains('${message}','SocialSecurityNumber')" action="Ignore"/>
[NOT TESTED]
Nlog supports this I have not tried it in a Litium project
1 Like
system
Closed
June 7, 2022, 7:33am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.