Why aren’t my Logback Log Files Rolling Over?

It’s probably due to your file name configuration in the appender section of the Logback.xml file. Logback does not like relative file paths! Make sure that both your appender -> file value and the rollingPolicy -> fileNamePattern values have an absolute file path configured. For mine, I used the ${catalina.base} property so that our logs will show up in the tomcat logs directory, regardless of which server the application is deployed to.

...
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <!-- Never use relative paths with logback! -->
        <file>${catalina.base}/logs/my-application.log</file>
        <append>true</append>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <!-- daily rollover -->
            <!-- Never use relative paths with logback! -->
            <fileNamePattern>${catalina.base}/logs/my-application.%d{yyyy-MM-dd}.log</fileNamePattern>

            <!-- keep 30 days' worth of history -->
            <maxHistory>30</maxHistory>
        </rollingPolicy>

        <encoder>
            <pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
        </encoder>

    </appender>
...
Posted in Code | 2 Comments

STS in OS X – Where’s the sts.ini? | Javalobby

One of the most popular articles on this blog deals with the eclipse and STS .ini configuration file. Here is a blog post from that identifies the location on a Mac.

http://java.dzone.com/articles/sts-os-x-%E2%80%93-wheres-stsini?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+javalobby%2Ffrontpage+%28Javalobby+%2F+Java+Zone%29

Posted in Uncategorized | Leave a comment

If I wanted America to fail

This is so well done. It perfectly frames the decision facing our country in November.

Video | Posted on by | Leave a comment

The Journal Science – Free the code | Watts Up With That?

This is so important. With this rule in place, actual scientific discussion can take place regarding the accuracy of computer generated models.

I keep a copy of the computer code that was leaked in climategate 1 on a usb drive I carry with me.  I have found that it is one of the best ways to illustrate the blatant fraud that runs so rampantly through AGW science.  For people I know that do not follow these things, the discussion of scientific papers or temperature proxies is very abstract and unconvicing.  The code, however, (complete with its tragically honest comments) is a smoking gun that anyone can immediately appreciate. I relish the satisfaction that comes when I see someone’s eyes go wide and their head begin to shake at the realization of the fact that the code was designed to rig the game.

http://wattsupwiththat.com/2012/04/17/the-journal-science-free-the-code/

Posted in Uncategorized | Leave a comment

Picture This: The Buffett Rule vs. Obama’s Budget

http://blog.heritage.org/2012/04/16/picture-this-the-buffett-rule-vs-obamas-budget/

Posted in Uncategorized | Leave a comment

The Met Office COPing response | Watts Up With That?

The embarrassing track record of MET office temperature predictions.

http://wattsupwiththat.com/2012/04/16/the-met-office-coping-response/

Posted in Uncategorized | Leave a comment

Bizarre: Carbon footprint used to deny medical visit | Watts Up With That?

http://wattsupwiththat.com/2012/04/06/bizarre-carbon-footprint-used-to-deny-medical-treatment/

Posted in Uncategorized | Leave a comment