+3
NLog .Net Logging 2 years ago 0
Set the variable in the XML under a <logger>, like

(https://github.com/NLog/NLog/issues/528)
 <rules>    
   <logger name="*.sqlExecutor" minlevel="Debug" writeTo="db">
      <!--new, variable for this logger-->
      <variable name="category" value="queries" />
    </logger>
  </rules>