<div dir="ltr"><div><div><div>Hi Ceki,<br><br></div>Unfortunately, that didn't change anything. I even commented out the code that uses Hibernate/JBoss logging and that didn't help either.<br><br></div>Thank you,<br><br></div>Donald <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 8:34 PM, Ceki Gülcü <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Try setting the "org.jboss.logging.provider" system property to slf4j as in<br>
<br>
java -Dorg.jboss.logging.provider=s<wbr>lf4j ...<br>
<br>
See also<br>
<a href="http://docs.jboss.org/hibernate/orm/4.3/topical/html/logging/Logging.html" rel="noreferrer" target="_blank">http://docs.jboss.org/hibernat<wbr>e/orm/4.3/topical/html/<wbr>logging/Logging.html</a><span class=""><br>
<br>
On 3/15/2017 1:14, Donald McLean wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ceki,<br>
<br><span class="">
JOSEPHINEs-MacBook-Pro:require<wbr>d dmclean$ ls<br>
antlr-2.7.7.jar                    geronimo-jta_1.1_spec-1.1.1.ja<wbr>r<br>
        javassist-3.20.0-GA.jar<br>
cdi-api-1.1.jar<br>
hibernate-commons-annotations-<wbr>5.0.1.Final.jar    javax.inject-1.jar<br>
classmate-1.3.0.jar                hibernate-core-5.2.5.Final.jar<br>
    jboss-interceptors-api_1.1_spe<wbr>c-1.0.0.Beta1.jar<br>
dom4j-1.6.1.jar<br>
<a href="http://hibernate-jpa-2.1-api-1.0.0.Fi">hibernate-jpa-2.1-api-1.0.0.Fi</a><wbr>nal.jar        jboss-logging-3.3.0.Final.jar<br>
el-api-2.2.jar                    jandex-2.0.3.Final.jar<br>
jsr250-api-1.0.jar<br>
JOSEPHINEs-MacBook-Pro:require<wbr>d dmclean$ grep StaticLoggerBinder *<br>
JOSEPHINEs-MacBook-Pro:require<wbr>d dmclean$<br>
<br>
As far as I can tell, SLF4J does not display any messages. What would I<br>
be looking for?<br>
<br>
Thank you,<br>
<br>
Donald<br>
<br>
On Tue, Mar 14, 2017 at 5:22 PM, Ceki Gülcü <<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a><br></span><span class="">
<mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>>> wrote:<br>
<br>
<br>
    jboss-logging should have StaticLoggerBinder as well. Anyway, what<br>
    message does slf4j display at boot time?<br>
<br>
    On 3/14/2017 22:17, Donald McLean wrote:<br>
<br>
        Since I use an IDE, I can't use the $JARS trick, but I went<br>
        through the<br>
        list library by library and the only ones that reference that<br>
        class are<br>
        SLF4J (surprise!) and Logback (surprise!).<br>
<br>
        On Tue, Mar 14, 2017 at 2:13 PM, Ceki Gülcü <<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a><br>
        <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>><br></span><div><div class="h5">
        <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a> <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>>>> wrote:<br>
<br>
<br>
<br>
            jboss-logging-3.3.0.Final.jar might be the culprit.<br>
<br>
            If not, I suggest that you go through all the jars and check<br>
        whether<br>
            they contain the org.slf4j.impl.StaticLoggerBin<wbr>der class<br>
<br>
            Assuming JARS environment variable contains the list of your jar<br>
            files, the following Unix command works:<br>
<br>
            for i in $JARS; do echo $i; jar tvf $i| grep<br>
        StaticLoggerBinder; done<br>
<br>
<br>
            On 3/14/2017 19:05, Donald McLean wrote:<br>
<br>
                Hi Ceki,<br>
<br>
                Thank you for responding. Of the stuff on my classpath,<br>
        the only<br>
                thing I<br>
                haven't used in other projects is neo4j. Though I don't<br>
                generally pay<br>
                much attention to the classpath order.<br>
<br>
                Thank you,<br>
<br>
                Donald<br>
<br>
                Classpath items:<br>
<br>
<br>
                IntelliJIdea2017.1/Scala/lib/s<wbr>cala-plugin-runners.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/charsets.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/deploy.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/cldrdata.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/dnsns.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/jaccess.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/jfxrt.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/localedata.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/nashorn.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/sunec.jar<br>
<br>
<br>
        jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/sunjce_provider.ja<wbr>r<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/sunpkcs11.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/ext/zipfs.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/javaws.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/jce.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/jfr.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/jfxswt.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/jsse.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/management-agent.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/plugin.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/resources.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>jre/lib/rt.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>lib/ant-javafx.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>lib/dt.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>lib/javafx-mx.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>lib/jconsole.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>lib/packager.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>lib/sa-jdi.jar<br>
<br>
                jdk1.8.0_91.jdk/Contents/Home/<wbr>lib/tools.jar<br>
<br>
                scala-2.12.1/lib/scala-library<wbr>.jar<br>
<br>
                scala-2.12.1/lib/scala-parser-<wbr>combinators_2.12-1.0.4.jar<br>
<br>
                scala-2.12.1/lib/scala-reflect<wbr>.jar<br>
<br>
                scala-2.12.1/lib/scala-swing_2<wbr>.12-2.0.0-M2.jar<br>
<br>
                scala-2.12.1/lib/scala-xml_2.1<wbr>2-1.0.6.jar<br>
<br>
                logback-1.2.1/logback-core-1.2<wbr>.1.jar<br>
<br>
                logback-1.2.1/logback-classic-<wbr>1.2.1.jar<br>
<br>
                slf4j-1.7.12/slf4j-api-1.7.12.<wbr>jar<br>
<br>
                junit-4.12/hamcrest-core-1.3.j<wbr>ar<br>
<br>
                junit-4.12/junit-4.12.jar<br>
<br>
                lift-3.0.1/lib/lift-actor_2.12<wbr>-3.0.1.jar<br>
<br>
                lift-3.0.1/lib/lift-common_2.1<wbr>2-3.0.1.jar<br>
<br>
                lift-3.0.1/lib/lift-json_2.12-<wbr>3.0.1.jar<br>
<br>
                lift-3.0.1/lib/lift-json-ext_2<wbr>.12-3.0.1.jar<br>
<br>
                lift-3.0.1/lib/lift-markdown_2<wbr>.12-3.0.1.jar<br>
<br>
                lift-3.0.1/lib/lift-util_2.12-<wbr>3.0.1.jar<br>
<br>
                lift-3.0.1/lib/lift-webkit_2.1<wbr>2-3.0.1.jar<br>
<br>
                lift-3.0.1/lib/lift-mapper_2.1<wbr>2-3.0.1.jar<br>
<br>
                commons-io-2.4/commons-io-2.4.<wbr>jar<br>
<br>
                commons-lang3-3.4/commons-lang<wbr>3-3.4.jar<br>
<br>
                joda-time-2.9.7/joda-time-2.9.<wbr>7.jar<br>
<br>
                joda-convert-1.8.1/joda-conver<wbr>t-1.8.1.jar<br>
<br>
                neo4j-3.0.7/neo4j-java-driver-<wbr>1.0.6.jar<br>
<br>
                db-derby-10.13.1.1-bin/lib/der<wbr>by.jar<br>
<br>
                db-derby-10.13.1.1-bin/lib/der<wbr>bytools.jar<br>
<br>
                hibernate-release-5.2.5.Final/<wbr>lib/required/antlr-2.7.7.jar<br>
<br>
                hibernate-release-5.2.5.Final/<wbr>lib/required/cdi-api-1.1.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/classmate-1.3.0.j<wbr>ar<br>
<br>
                hibernate-release-5.2.5.Final/<wbr>lib/required/dom4j-1.6.1.jar<br>
<br>
                hibernate-release-5.2.5.Final/<wbr>lib/required/el-api-2.2.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/geronimo-jta_1.1_<wbr>spec-1.1.1.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/hibernate-commons<wbr>-annotations-5.0.1.Final.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/hibernate-core-5.<wbr>2.5.Final.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/hibernate-jpa-2.1<wbr>-api-1.0.0.Final.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/jandex-2.0.3.Fina<wbr>l.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/javassist-3.20.0-<wbr>GA.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/javax.inject-1.ja<wbr>r<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/jboss-interceptor<wbr>s-api_1.1_spec-1.0.0.Beta1.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/jboss-logging-3.3<wbr>.0.Final.jar<br>
<br>
<br>
        hibernate-release-5.2.5.Final/<wbr>lib/required/jsr250-api-1.0.ja<wbr>r<br>
<br>
                scalatest-3.0.1/scalactic_2.12<wbr>-3.0.1.jar<br>
<br>
                scalatest-3.0.1/scalatest-app_<wbr>2.12-3.0.1.jar<br>
<br>
                On Tue, Mar 14, 2017 at 1:03 PM, Ceki Gülcü <<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a><br>
        <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>><br>
                <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a> <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>>><br>
                <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a> <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>><br>
        <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a> <mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>>>>> wrote:<br>
<br>
<br>
                    Hi Donald,<br>
<br>
                    The following error will disappear with<br>
                logback-core/logback-classic<br>
                    version 1.2.x.<br>
<br>
                    no applicable action for [immediateFlush], current<br>
                ElementPath  is<br>
                    [[configuration][appender][imm<wbr>ediateFlush]]<br>
<br>
                    In addition, I recommend that you enable logback's<br>
        internal<br>
                messages<br>
                    with:<br>
<br>
                    <configuration debug="true"><br>
                    </configuration><br>
<br>
                    Having said that, given the status messages you<br>
        provided, if<br>
                logs<br>
                    are going to STDOUT, then logs are being hijacked by<br>
        some other<br>
                    component. What's on your classpath?<br>
<br>
                    --<br>
                    Ceki<br>
<br>
<br>
<br>
                    On 3/14/2017 16:50, Donald McLean wrote:<br>
<br>
                        The config shown below is creating the file, but<br>
        nothing is<br>
                        writing to<br>
                        it, and some classes are not logging at all.<br>
        Those that<br>
                do log,<br>
                        it's all<br>
                        going to stdout. Obviously, I've done something<br>
        stupid,<br>
                but I can't<br>
                        figure out what.<br>
<br>
                        Here is some output from stdout that looks like it's<br>
                from logback:<br>
<br>
                        Got 12 errors.<br>
                        INFO in<br>
                ch.qos.logback.classic.joran.a<wbr>ction.ConfigurationAction<br>
                        - debug<br>
                        attribute not set<br>
                        INFO in<br>
        ch.qos.logback.core.joran.acti<wbr>on.TimestampAction<br>
                - Using<br>
                        current<br>
                        interpretation time, i.e. now, as time reference.<br>
                        INFO in<br>
        ch.qos.logback.core.joran.acti<wbr>on.TimestampAction<br>
                - Adding<br>
                        property to the context with key="bySecond" and<br>
                        value="20170314T113135"<br>
                        to the LOCAL scope<br>
                        INFO in<br>
        ch.qos.logback.core.joran.acti<wbr>on.AppenderAction<br>
                - About to<br>
                        instantiate appender of type<br>
                [ch.qos.logback.core.FileAppen<wbr>der]<br>
                        INFO in<br>
        ch.qos.logback.core.joran.acti<wbr>on.AppenderAction<br>
                - Naming<br>
                        appender as [FILE]<br>
                        ERROR in<br>
        ch.qos.logback.core.joran.spi.<wbr>Interpreter@7:33 - no<br>
                        applicable<br>
                        action for [immediateFlush], current ElementPath  is<br>
                        [[configuration][appender][imm<wbr>ediateFlush]]<br>
                        INFO in<br>
                ch.qos.logback.core.joran.acti<wbr>on.NestedComplexPropertyIA -<br>
                        Assuming default type<br>
<br>
        [ch.qos.logback.classic.encode<wbr>r.PatternLayoutEncoder] for<br>
                        [encoder] property<br>
                        INFO in ch.qos.logback.core.FileAppend<wbr>er[FILE] -<br>
        File<br>
                property<br>
                        is set to<br>
                        [GraphDBTest-20170314T113135.l<wbr>og]<br>
                        INFO in<br>
                ch.qos.logback.classic.joran.a<wbr>ction.RootLoggerAction -<br>
                        Setting<br>
                        level of ROOT logger to TRACE<br>
                        INFO in<br>
        ch.qos.logback.core.joran.acti<wbr>on.AppenderRefAction -<br>
                        Attaching<br>
                        appender named [FILE] to Logger[ROOT]<br>
                        INFO in<br>
                ch.qos.logback.classic.joran.a<wbr>ction.ConfigurationAction<br>
                        - End of<br>
                        configuration.<br>
                        INFO in<br>
                ch.qos.logback.classic.joran.J<wbr>oranConfigurator@13b6aecc -<br>
                        Registering current configuration as safe<br>
        fallback point<br>
<br>
                        I would really appreciate a suggestion as to<br>
        what I'm<br>
                doing wrong.<br>
<br>
                        Thank you,<br>
<br>
                        Donald<br>
<br>
<br>
                        <configuration><br>
<br>
                                    <timestamp<br>
        datePattern="yyyyMMdd'T'HHmmss<wbr>"<br>
                        key="bySecond"/><br>
<br>
                                    <appender<br>
                class="ch.qos.logback.core.Fil<wbr>eAppender"<br>
                        name="FILE"><br>
<br>
        <file>GraphDBTest-${bySecond}.<wbr>log</file><br>
<br>
        <immediateFlush>true</immediat<wbr>eFlush><br>
<br>
                                        <encoder><br>
                                            <pattern>%date %level [%thread]<br>
                %logger{10}<br>
                        [%file:%line] %msg%n</pattern><br>
                                        </encoder><br>
                                    </appender><br>
<br>
                                    <root level="TRACE"><br>
                                        <appender-ref ref="FILE"/><br>
                                    </root><br>
<br>
                                </configuration><br>
<br>
<br>
<br>
                ______________________________<wbr>_________________<br>
                logback-user mailing list<br>
                <a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a> <mailto:<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a>><br></div></div>
        <mailto:<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a> <mailto:<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a>>><span class=""><br>
                <a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/<wbr>listinfo/logback-user</a><br>
        <<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman<wbr>/listinfo/logback-user</a>><br>
                <<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman<wbr>/listinfo/logback-user</a><br>
        <<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman<wbr>/listinfo/logback-user</a>>><br>
<br>
            ______________________________<wbr>_________________<br>
            logback-user mailing list<br>
            <a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a> <mailto:<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a>><br></span>
        <mailto:<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a> <mailto:<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a>>><br>
            <a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/<wbr>listinfo/logback-user</a><br>
        <<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman<wbr>/listinfo/logback-user</a>><div><div class="h5"><br>
            <<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman<wbr>/listinfo/logback-user</a><br>
        <<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman<wbr>/listinfo/logback-user</a>>><br>
<br>
<br>
<br>
<br>
        --<br>
        Family photographs are a critical legacy for<br>
        ourselves and our descendants. Protect that<br>
        legacy with a digital backup and recovery plan.<br>
<br>
<br>
        ______________________________<wbr>_________________<br>
        logback-user mailing list<br>
        <a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a> <mailto:<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a>><br>
        <a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/<wbr>listinfo/logback-user</a><br>
        <<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman<wbr>/listinfo/logback-user</a>><br>
<br>
    ______________________________<wbr>_________________<br>
    logback-user mailing list<br>
    <a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a> <mailto:<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a>><br>
    <a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/<wbr>listinfo/logback-user</a><br>
    <<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman<wbr>/listinfo/logback-user</a>><br>
<br>
<br>
<br>
<br>
--<br>
Family photographs are a critical legacy for<br>
ourselves and our descendants. Protect that<br>
legacy with a digital backup and recovery plan.<br>
<br>
<br>
______________________________<wbr>_________________<br>
logback-user mailing list<br>
<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/<wbr>listinfo/logback-user</a><br>
<br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
logback-user mailing list<br>
<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/<wbr>listinfo/logback-user</a></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Family photographs are a critical legacy for<br>ourselves and our descendants. Protect that<br>legacy with a digital backup and recovery plan.</div>
</div>