Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2007, 06:56 PM
Senior Member
 
Join Date: Jun 2007
Posts: 119
Peter is on a distinguished road
log4j property file in my application
I'm developing a rcp plugin application and implement a log4j to log in
but when I export the plugin as a product of the eclipse, the log file doesn't generate.
Where should I put the log4j.properties in my application of the plugin rcp?

thanks,
peter
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-06-2007, 05:05 AM
Senior Member
 
Join Date: Jun 2007
Posts: 114
Albert is on a distinguished road
RE: log4j property file in my application
Hello, for that they were interested in LOG4J… I found a tool very good to filter and to see log… using a XMLLayout format.

Log4j Version 1.2.14: Package org.apache.log4j.chainsaw

Albert
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-06-2007, 02:54 PM
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
I checked the documentation of log4j and the properties file must be in the path.
Particularly I use this code to configure it:
Code:
private static final File LOG_PROPS = new File("logger.properties"); ... if (LOG_PROPS.exists()) { PropertyConfigurator.configure(LOG_PROPS.getPath()); } else { BasicConfigurator.configure(); }
While the logger.properties file is in the directory where the application executes, it works well.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-14-2007, 04:12 AM
Member
 
Join Date: Jun 2007
Posts: 1
prakashru is on a distinguished road
How and where to install the log4j.properties for my simple application....
I am new in log4j
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to store property file into key value pair Java Tip java.util 0 04-05-2008 11:16 AM
Initializing property object from a file Java Tip Java Tips 0 12-29-2007 05:55 PM
problem locating file in web application Rem New To Java 0 11-09-2007 05:00 PM
How to make a web application as .exe file madhusudhangovindu Advanced Java 1 08-02-2007 04:58 PM
Property File Peter Database 2 07-04-2007 04:48 PM


All times are GMT +3. The time now is 06:34 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org