Results 1 to 4 of 4
- 06-05-2007, 05:56 PM #1
Senior Member
- Join Date
- Jun 2007
- Posts
- 119
- Rep Power
- 0
- 06-06-2007, 04:05 AM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 114
- Rep Power
- 0
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:rolleyes:
- 06-06-2007, 01:54 PM #3
Senior Member
- Join Date
- Jun 2007
- Posts
- 130
- Rep Power
- 0
I checked the documentation of log4j and the properties file must be in the path.
Particularly I use this code to configure it:
While the logger.properties file is in the directory where the application executes, it works well.Java Code:private static final File LOG_PROPS = new File("logger.properties"); ... if (LOG_PROPS.exists()) { PropertyConfigurator.configure(LOG_PROPS.getPath()); } else { BasicConfigurator.configure(); }
;)
- 06-14-2007, 03:12 AM #4
Member
- Join Date
- Jun 2007
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
How to store property file into key value pair
By Java Tip in forum java.utilReplies: 0Last Post: 04-05-2008, 10:16 AM -
Initializing property object from a file
By Java Tip in forum Java TipReplies: 0Last Post: 12-29-2007, 04:55 PM -
problem locating file in web application
By Rem in forum New To JavaReplies: 0Last Post: 11-09-2007, 04:00 PM -
How to make a web application as .exe file
By madhusudhangovindu in forum Advanced JavaReplies: 1Last Post: 08-02-2007, 03:58 PM -
Property File
By Peter in forum JDBCReplies: 2Last Post: 07-04-2007, 03:48 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks