I have a fairly standard log4net log that follows the Log4J format.
When i type in the pattern LogMX recognizes it properly under "Pattern MX Translation" but won't parse the sample text nor any files.
GamutLog recognizes the pattern and successfully parses the files on the exact same files.
I have tried both of these.:
%date{yyyy-MM-dd hh:mm:ss,fff} %level %message
%d{yyyy-MM-dd hh:mm:ss,fff} %-5level %msg%n
Am I doing something wrong?
Does the trial version not support custom parsing patterns?
This is the second time in 6 months I've given LogMX a try and can never get past this point when it seems simple in other softwares.
Log4Net will not parse
Moderator: admin
Re: Log4Net will not parse
Hello,
Using .NET, the date format uses "fff" to mean "milliseconds", but since LogMX Pattern Parsers supports at this time only Log4j & Logback Patterns, "SSS" shall be used to mean "milliseconds" (Log4j/Logback relies on Java API and Log4net on .NET API):
http://logging.apache.org/log4net/relea ... ayout.html
http://logging.apache.org/log4j/2.0/man ... l#Patterns
http://logback.qos.ch/manual/layouts.html#date
So these two patterns work (just replace each "f" with "S"):
Log4net pattern syntax seems different than Log4j/Logback pattern syntax, but I think we will, at least, handle "f" as "S" in the next release (no problem, "f" doesn't mean anything in Java), thank you for your feedback!
Xavier
Using .NET, the date format uses "fff" to mean "milliseconds", but since LogMX Pattern Parsers supports at this time only Log4j & Logback Patterns, "SSS" shall be used to mean "milliseconds" (Log4j/Logback relies on Java API and Log4net on .NET API):
http://logging.apache.org/log4net/relea ... ayout.html
http://logging.apache.org/log4j/2.0/man ... l#Patterns
http://logback.qos.ch/manual/layouts.html#date
So these two patterns work (just replace each "f" with "S"):
Code: Select all
%date{yyyy-MM-dd hh:mm:ss,SSS} %level %message
%d{yyyy-MM-dd hh:mm:ss,SSS} %-5level %msg%n
Xavier
Re: Log4Net will not parse
Hello,
LogMX v5.3.2 is now released, and it now handles "f" as an alias for "S", so LogMX now handles Log4Net dates![Smile :)](./images/smilies/icon_e_smile.gif)
Xavier
LogMX v5.3.2 is now released, and it now handles "f" as an alias for "S", so LogMX now handles Log4Net dates
![Smile :)](./images/smilies/icon_e_smile.gif)
Xavier