NLog conditional logging rules for Debug and Release

1.9k views Asked by At

I would like to create different logging rules for the Debug and for the Release situation. Better said, I would like to log TRACE level if I am in Debug mode.

<rules>
  <logger ... >
    <filters>
      <when condition="Condition" action="Enum"/>
    </filters>
  </logger>
</rules> 

NLog conditional config

This is how it is described, but I don't know how to config it for my desired function.

0

There are 0 answers