On Fri, Nov 23, 2012 at 7:41 AM, RobOaks <span dir="ltr"><<a href="mailto:roboaks@comcast.net" target="_blank">roboaks@comcast.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
I am encountering several initialization errors with the logback.xml file<br>
(below) that do not seem to be addressed in either this mailing list or<br>
JIRA. I am running Logback 1.0.7 with SLF4J 1.7.2.<br>
<br>
During initialization I receive the following Logback errors:<br>
1. No applicable action for [outputPatternAsHeader]. Try as I might, I can<br>
not get Logback to recognize this property.  </blockquote><div><br></div><div>Double-check your classpath. It might be pointing to a version of logback that's older than 1.0.3 (where <outputPatternAsHeader> was introduced). [1]</div>


<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. No applicable action for [immediateFlush]. This error may be expected, as<br>
I was able to glean from the list and JIRA that this property has been<br>
eliminated. Please confirm.<br></blockquote><div><br></div><div>No, <immediateFlush> is still a valid property for layout encoders in logback-1.0.7. [2]</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



3. no applicable action for [withJansi] / There is no conversion class<br>
registered for composite conversion word [highlight]. I am including<br>
jansi-1.8.jar in the classpath but, obviously, this wouldn’t even come into<br>
play if withJansi isn’t even recognized.<br></blockquote><div><br></div><div>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 classpath).</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

4. Could not find Janino library on the class path. Skipping conditional<br>
processing. Both commons-compiler.jar and janino.jar 2.6.1 are on the<br>
classpath. I understand that there are potential issues with the use of<br>
conditional processing because of Janino and I’m wondering if I should<br>
abandon this feature, though it makes the config file significantly more<br>
elegant.<br>
<br></blockquote><div><br></div><div>To use Janino, you must include *two* relevant jars: janino.jar and commons-compiler.jar. [3]</div><div><br></div><div>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 /tmp/its/Idcp.log. [4]</div>


<div><br></div><div>I wrote a HelloWorld application (output via SLF4J) with Eclipse Juno on OSX Mountain Lion. I included the following jars:</div><div> * slf4j-api-1.7.2.jar</div><div> * logback-core-1.0.7.jar</div><div>


 * logback-classic-1.0.7.jar</div><div> * janino-commons-compiler-2.6.1.jar</div><div> * janino-2.6.1.jar</div><div><br></div><div>[1] <a href="http://logback.qos.ch/apidocs/ch/qos/logback/core/pattern/PatternLayoutEncoderBase.html#setOutputPatternAsHeader(boolean)" target="_blank">http://logback.qos.ch/apidocs/ch/qos/logback/core/pattern/PatternLayoutEncoderBase.html#setOutputPatternAsHeader(boolean)</a></div>


<div>[2] <a href="http://logback.qos.ch/apidocs/ch/qos/logback/core/encoder/LayoutWrappingEncoder.html#setImmediateFlush(boolean)" target="_blank">http://logback.qos.ch/apidocs/ch/qos/logback/core/encoder/LayoutWrappingEncoder.html#setImmediateFlush(boolean)</a></div>


<div>[3] <a href="http://logback.qos.ch/setup.html#janino" target="_blank">http://logback.qos.ch/setup.html#janino</a></div><div>[4] <a href="http://pastebin.com/ZJpdbf2c">http://pastebin.com/ZJpdbf2c</a></div><div><br></div>

</div>