How to apply different layouts to the same target in NLog?
问题 NLog allows me to use SplitGroup to log my messages to several targets. I'd like to use this feature to log each message to a common, user-specific and date-specific logs at once: <variable name="commonLog" value="${logDir}\Common.log" /> <variable name="username" value="${identity:fSNormalize=true:authType=false:isAuthenticated=false}" /> <variable name="userLog" value="${logDir}\ByUser\${username}.log" /> <variable name="dateLog" value="${logDir}\ByDate\${shortdate}.log" /> <target name=