SyslogAppender prints %PARSER_ERROR[nopexXXX] when suffixPattern doesn't start with [
-------------------------------------------------------------------------------------
Key: LBCLASSIC-319
URL:
http://jira.qos.ch/browse/LBCLASSIC-319 Project: logback-classic
Issue Type: Bug
Affects Versions: 0.9.30, 1.0.0
Reporter: Markus Binsteiner
Assignee: Logback dev list
Priority: Minor
When I use the SyslogAppender and specify a suffixPattern that starts with a whitespace or other character that is not [ logback seems to just append the string (until the first occurence of certain characters, e.g -) to the internal "%nopex" string. Subsequently it fails to parse the %nopexXXX string and prints something like:
Jan 12 15:54:14 think %PARSER_ERROR[nopexXXX] [main] LogTest DEBUG FROM JAVA...
to syslog. Had a look in the sourcecode, but couldn't figure out where it goes wrong, but I could confirm that if I add a whitespace to the string in this line
String prefixPattern = "%syslogStart{" + facilityStr + "}%nopex ";
there is no PARSER_ERROR. An additional whitespace in the logmessage though (I can live with that though). I need to be able to specify a string that doesn't start with [ though for some crazy reason (almost funny -- every other character would have been ok as far as I could figure out...).
Any chance that could be looked into and included in one of the next releases?
Thanks in advance...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.qos.ch/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
logback-dev mailing list
logback-dev@...
http://mailman.qos.ch/mailman/listinfo/logback-dev