You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is available with NLog's current version. I am already using it and its working fine.
<!-- Define the layout to be used for console and file logging -->
<variablename="loggerLayout"value="[${longdate}] ${level:uppercase=true}${message}"/>
<targetxsi:type="File"name="file"fileName="${basedir}\logs\${shortdate}.log"layout="${loggerLayout}" />
I have defined a variable for layout (only because I want to reuse it with other targets), but I think it still works if I directly define the layout in <target/>
Instead of having to do this:
Then it could be nice one could also do this:
Right now the work-around is doing it like this:
Could also be nice with option-handling when doing the short-hand type-alias-syntax. Ex.
layout="${mylayout:awesome=true}"
The text was updated successfully, but these errors were encountered: