How to add current date with file name for RollingFileAppender

2008-12-15 Thread manish_goyal
Hi, I am using RollingfileAppender for logging data into file in log4j.properties file. I want to add current system date with file name. I have tried adding using System.currentTimeMillis(). but it's not working. log4j.appender.searchLogger.file=Search_${System.currentTimeMillis()}.log There i

Is that possible to split values from (%m) message object in log4j.properties file

2008-11-25 Thread manish_goyal
Hi, I am using log4j.properties file to log data into database. I am setting multiple values in a JAVA file using different Logger.info(“value”). In log4j.properties file, when I am using %m to insert values in database, it’s inserting all values in a single column. I want to put values from

Can we define multiple Logger instance in a single class file?

2008-11-23 Thread manish_goyal
Hi, Could any one tell me how to create multiple Logger instance in a single class? Is this possible? If it is possible then what will be the value for "?". Logger myLogger = Logger.getLogger("?"); in class file. and for referring the same Logger instance in log4j.properties file, how we will b

How to split values using log4j .properties

2008-11-20 Thread manish_goyal
Hi, I am using log4j.properties file to log data into database. I am setting multiple values in a JAVA file using Logger.info(“value”). In log4j.properties file, when I am using %m to insert values in database, it’s inserting all values in a single column. Is there any way to split values in

Re: Error while loading OracleDriver

2008-11-20 Thread manish_goyal
Hi, Thanks all for your response. Now it's working fine after placing all jar files to Java\jdk1.5.0_15\lib. Regards, Manish -- View this message in context: http://www.nabble.com/Error-while-loading-OracleDriver-tp20577699p20616386.html Sent from the Log4j - Users mailing list archive at Na

Re: Error while loading OracleDriver

2008-11-19 Thread manish_goyal
Hi, Thanks for your reply. I have placed ojdbc14.jar and classes12.jar file in class path. But still i am getting the same error. Please solve this problem. Regards, Manish -- View this message in context: http://www.nabble.com/Error-while-loading-OracleDriver-tp20577699p20595343.html Sent

Error while loading OracleDriver

2008-11-19 Thread manish_goyal
Hi, I am sending message to JMS queue using java application. From there i am using log4j.properties file for logging message to File and Database. I have added ojdbc.jar and JDBCAppender.jar file in dependency. I am able to log in to file, but for DataBase i am getting following error:- log4j:E

problem with JDBC logging

2008-11-14 Thread manish_goyal
I have configured log4j.properties file for JDBC and File logging. I am able to log data in file and database. But in database, data is not in appropriate format. I am setting four parameters, all these parameter is going to only one column. i am setting like this in my java program:- mylogger.

Re: Can we add FileAppender and JDBCAppender together

2008-11-14 Thread manish_goyal
Thanks for your response Arnold. I have configured log4j.properties file for JDBC and File logging. I am able to log data in file and database. But in database, data is not in appropriate format. I am setting four parameters, all these parameter is going to only one column. i am setting like th

Can we add FileAppender and JDBCAppender together

2008-11-14 Thread manish_goyal
Hi, Please tell me can we add FileAppender and JDBCAppender together in a log4j.properties file. I configured my log4j.properties file for both FileAppender and JDBCAppender, FileAppender is working fine but JDBCAppender is not working. My log4j.properties file is :- log4j.rootCategory=JDBC log

help need in JDBCAppender

2008-11-12 Thread manish_goyal
Hi, I need help to configure log4j.properties file and java class (which use Logger) for JDBCAppender. Please send the both file or give me some helpful URL . Thanks. Regards, Manish -- View this message in context: http://www.nabble.com/help-need-in-JDBCAppender-tp20456200p20456200.html Sent