Reputation: 1913
I have the following configuration:
<logger name="*" minlevel="Debug" writeTo="jobFile" >
<filters default-action="Ignore">
<when condition="('${event-properties:JobName}' != '')" action="Log" />
</filters>
</logger>
with target jobFile which fileName is:
fileName="${event-properties:JobName}-${date:format=yyyyMMdd}.log"
The problem is that i can see logs of the following format on disk:
"-20250303.log"
I wanted to avoid logging where JobName event is not set. For some reason I cannot use 5.0 and higher version but the biggest is 4.75. Is it possible to workaround that somehow?
Upvotes: 0
Views: 27