The Artima Developer Community
Sponsored Link

Java Buzz Forum
Log4j Properties Trick

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Fred Grott

Posts: 105
Nickname: sharemefg
Registered: Nov, 2005

Fred Grott is an android developer producing prototype applications for Chicago start-ups
Log4j Properties Trick Posted: Aug 19, 2012 8:41 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Fred Grott.
Original Post: Log4j Properties Trick
Feed Title: GrottWorkShop
Feed URL: http://shareme.github.io/atom.xml
Feed Description: Android development with a passion for Android, Java, and Agile.
Latest Java Buzz Posts
Latest Java Buzz Posts by Fred Grott
Latest Posts From GrottWorkShop

Advertisement

So I am using Log4j to more fully log my builds and the diagnostics. But Eclipse is somewhat quirky in this area. Guess what the way is to get Eclipse to recognize the log4j.properties file?

Take your log4j.properties file and zip compress it. Now for the hack part of the trick, rename it with a jar extension. Now in your Eclipse Ant Preference under Runtime load that external jar into the ant classpath along of course with yor log4j jar.

Now you can me full use of the Log4j over SLF4J features of something like Log4ANT in your apache ANT build scripts.

Read: Log4j Properties Trick

Topic: Creating a Java Dynamic Proxy Previous Topic   Next Topic Topic: SpringSource Tool Suites 3.0.0 released – reorganized, open-sourced, and at GitHub

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use