Log4View doesn't recognize the NLog pattern

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Log4View doesn't recognize the NLog pattern

log4win
Hello,

I am trying to read NLog file using your software. log.log
Pattern:
### ${date:format=yyyy-MM-dd HH\:mm\:ss} | ${machinename} | ${aspnet-appbasepath:default=${currentdir:dir}}} | ${iis-site-name} | ${pad:padding=6:inner=${level:uppercase=true}} | ${aspnet-Request-IP} | ${callsite}${newline}${stacktrace:format=DetailedFlat}${newline}${message}${newline} | ${exception:format=ToString,Message,Method,StackTrace,Data:maxInnerExceptionLevel=5}

Outcome:
pattern
outcome

Did I do something wrong? Or there's a bug?
Reply | Threaded
Open this post in threaded view
|

Re: Log4View doesn't recognize the NLog pattern

Ulrich
Administrator
I suppose, the '###' pattern on the begin of each log line confuses the parser. Change the pattern so that it directly starts with  ${date... and it should work.
Reply | Threaded
Open this post in threaded view
|

Re: Log4View doesn't recognize the NLog pattern

log4win
I've tried deleting ### from the log file and changing the pattern accordingly but the outcome is still the same.
Reply | Threaded
Open this post in threaded view
|

Re: Log4View doesn't recognize the NLog pattern

Ulrich
Administrator
Can you please send us a short log file and the exact log pattern, which you used.
Send it to support@prosa.biz

Thank you, Ulrich
Reply | Threaded
Open this post in threaded view
|

Re: Log4View doesn't recognize the NLog pattern

Ulrich
Administrator
We have fixed the error in Version 1.6.1.