[logback-user] Config file failures unexplained in list or JIRA
tony19 at gmail.com
Wed Nov 28 03:57:10 CET 2012
On Fri, Nov 23, 2012 at 7:41 AM, RobOaks <roboaks at comcast.net> wrote:
> I am encountering several initialization errors with the logback.xml file
> (below) that do not seem to be addressed in either this mailing list or
> JIRA. I am running Logback 1.0.7 with SLF4J 1.7.2.
> During initialization I receive the following Logback errors:
> 1. No applicable action for [outputPatternAsHeader]. Try as I might, I can
> not get Logback to recognize this property.
Double-check your classpath. It might be pointing to a version of logback
that's older than 1.0.3 (where <outputPatternAsHeader> was introduced). 
2. No applicable action for [immediateFlush]. This error may be expected, as
> I was able to glean from the list and JIRA that this property has been
> eliminated. Please confirm.
No, <immediateFlush> is still a valid property for layout encoders in
3. no applicable action for [withJansi] / There is no conversion class
> registered for composite conversion word [highlight]. I am including
> jansi-1.8.jar in the classpath but, obviously, this wouldn’t even come into
> play if withJansi isn’t even recognized.
I don't have a Windows machine handy at the moment, but I'm guessing it's
the same issue mentioned previously (an old version of logback in your
> 4. Could not find Janino library on the class path. Skipping conditional
> processing. Both commons-compiler.jar and janino.jar 2.6.1 are on the
> classpath. I understand that there are potential issues with the use of
> conditional processing because of Janino and I’m wondering if I should
> abandon this feature, though it makes the config file significantly more
To use Janino, you must include *two* relevant jars: janino.jar and
I just tried your logback configuration with logback-1.0.7 and Janino, and
there were no config errors. It output correctly to the console (with the
color codes), and it correctly wrote the pattern header to the log file at
I wrote a HelloWorld application (output via SLF4J) with Eclipse Juno on
OSX Mountain Lion. I included the following jars:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Logback-user