MaxBackupIndex in DailyRollingFileAppender

2008-07-03 Thread Michael Sukianto
Hi, When using a DailyRollingFileAppender, is there any way to specify the maximum number of files which should be kept? I know that the RollingFileAppender supports a maxBackupIndex property, but it seems this is not supported by DailyRollingFileAppender. I don't want to use RollingFileAppen

additivity attribute for logger does not diffrently for root and user-defined logger.

2008-07-03 Thread Camer38
I have two Java classes that used log4j. curam.tools.upgradehelper.ieg.QuestionSequenceOrderConverter and curam.tools.upgradehelper.taskredirection.TaskRedirectionConverter Both classes from above uses different class: curam.tools.upgradehelper.util.SQLStatements where a logger in each of the cl

"additivity" attribute does not work for user-defined logger but works for root logger.

2008-07-03 Thread Camer38
I have two Java classes that used log4j. curam.tools.upgradehelper.ieg.QuestionSequenceOrderConverter and curam.tools.upgradehelper.taskredirection.TaskRedirectionConverter Both classes from above uses different class: curam.tools.upgradehelper.util.SQLStatements where a logger in each of

Re: additivity attribute for logger does not diffrently for root and user-defined logger.

2008-07-03 Thread Thorbjørn Ravn Andersen
Camer38 skrev den 03-07-2008 15:15: Instead I got an log4j warning: log4j:WARN No appenders could be found for logger (curam.tools.upgradehelper.util.SQLStatements). This sounds like your configuration file is not picked up. Try running with -Dlog4j.debug=true to see what is happening.

Re: additivity attribute for logger does not diffrently for root and user-defined logger.

2008-07-03 Thread Camer38
My log file based on the log4j.xml that is picked up as expected. I still do not see the correct/full log from my tool (java class) Buildfile: addQuestionSequenceOrder.xml addQuestionSequenceOrderConverter: [java] log4j: Trying to find [log4j.xml] using context classloader [EMAIL PROTECTED]

RE: "additivity" attribute does not work for user-defined logger but works for root logger.

2008-07-03 Thread Bender Heri
Please provide your full log4j.xml. Heri > -Original Message- > From: Camer38 [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 03, 2008 3:26 PM > To: log4j-user@logging.apache.org > Subject: "additivity" attribute does not work for > user-defined logger but works for root logger. > >

Re: additivity attribute for logger does not diffrently for root and user-defined logger.

2008-07-03 Thread Camer38
Any chance for an advice , please? -- View this message in context: http://www.nabble.com/additivity-attribute-for-logger-does-not-diffrently-for-root-and-user-defined-logger.-tp18259080p18260179.html Sent from the Log4j - Users mailing list archive at Nabble.com. -

RE: "additivity" attribute does not work for user-defined logger but works for root logger.

2008-07-03 Thread Camer38
It is correct log4j.xml http://jakarta.apache.org/log4j/";> -- View this

RE: "additivity" attribute does not work for user-defined logger but works for root logger.

2008-07-03 Thread Camer38
http://jakarta.apache.org/log4j/";> I use log4j-1.2.15.jar I run th

Re: "additivity" attribute does not work for user-defined logger but works for root logger.

2008-07-03 Thread Thorbjørn Ravn Andersen
Camer38 skrev den 03-07-2008 15:25: My assumption was that if I run one of the class curam.tools.upgradehelper.ieg.QuestionSequenceOrderConverter I would got all the logs from that class and all the classes used internally by curam.tools.upgradehelper.ieg.QuestionSequenceOrderConverter in the ad

Question for CustomSQLDBReceiver

2008-07-03 Thread Rally, Varun
Hello All, I am new to Chainsaw and want to use CustomSQLDBReceiver. Though I have got an idea of what it is, I am not able to get it running. Please provide me an internet link or URL that explains the steps to use a CustomSQLDBReceiver. Thanks in anticipation. Regards, Varun

Re: "additivity" attribute does not work for user-defined logger but works for root logger.

2008-07-03 Thread Camer38
Thanks for your answer and your time. Why the root logger defined: knows that all the logs from ALL the classes should go the the file specified by appenders:taskRedirection, addQuestionSequenceOrder and a logger: knows that ONLY logs from

RE: Question for CustomSQLDBReceiver

2008-07-03 Thread Scott Deboy
http://logging.apache.org/log4j/companions/receivers/apidocs/org/apache/log4j/db/CustomSQLDBReceiver.html Add your jdbc jar to the $userhome/.chainsaw/plugins folder and update your chainsaw xml config file to use the receiver (see the Welcome tab - there's a 'view example receiver configuration

How to apply layout to AsyncAppender?

2008-07-03 Thread Robbie Robinson
I have a scenario where I want to use multiple appenders for the same logger (FileAppender and SocketAppender for now). Both appenders need to format the message using the same layout. Instead of formatting the single message multiple times(in the FileAppender and in the SocketAppender), I was

RE: How to apply layout to AsyncAppender?

2008-07-03 Thread Scott Deboy
SocketAppender doesn't support a layout. log4j doesn't support the concept of inherited layouts, so you'll have to specify it for each appender that needs one. Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Telephone: 503.224.7496 Cell: 503.997.1

RE: How to apply layout to AsyncAppender?

2008-07-03 Thread Robbie Robinson
I wasn't thinking so much about trying to have the layout inherited by the sub-appenders as much as apply the layout and actually format the data at the AsyncAppender level. That way I only spend the resources formatting the data once (inside the AsyncAppender) instead of multiple times, once p

RE: Question for CustomSQLDBReceiver

2008-07-03 Thread Rally, Varun
I created a table with the following statement. 1) CREATE TABLE `userdb`.`sys_log` ( `log_id` int(10) unsigned NOT NULL auto_increment, `log_date` timestamp NOT NULL default CURRENT_TIMESTAMP, `sys_name` varchar(45) NOT NULL, `machine_name` varchar(45) NOT NULL, `

RE: Question for CustomSQLDBReceiver

2008-07-03 Thread Scott Deboy
How to use CustomSQLDBReceiver: 1. create a $userhome/.chainsaw/plugins folder 2. copy your jdbc driver to the plugins folder 3. the Chainsaw downloads page links to an 'inportant distribution notes' link for more info about extended features - go there and follow the instructions for what you'r

RE: Question for CustomSQLDBReceiver

2008-07-03 Thread Rally, Varun
Hello, I believe I am doing all of the steps mentioned below. I think the issue is with the configuration file where I have the SQL. In CustomSQLDBReceiver, there is an example query select logger as LOGGER, timestamp as TIMESTAMP, level as LEVEL, thread as THREAD, message as MESSAGE, ndc as

RE: Question for CustomSQLDBReceiver

2008-07-03 Thread Scott Deboy
The receiver needs all of the columns to be in the result set that it's creating events from. You DO NOT need to have all of the columns in your schema - you just need to make sure the resultset being built contains the columns. You do this by using aliases to rename or add missing columns, a

RE: Question for CustomSQLDBReceiver

2008-07-03 Thread Rally, Varun
Thanks a ton Scott, it worked. The problem was that few columns were missing in the SQL statement, everything else was fine. Regards, Varun Rally --- Fiserv, A-94/8, SECTOR 58 NOIDA UP INDIA 201301 Phone- 91-120-4023000 extn. 3268 Cell- 91-98990-378

Chainsaw SMTP Receiver.

2008-07-03 Thread Rally, Varun
Hello, As we have different custom receivers in Chainsaw. Since we have SMTP Appender available in Log4J. Do we have corresponding SMTPReceiver for chainsaw to read auto-generated mails from mailbox and display them? Regards, Varun Rally --- F

Re: "additivity" attribute does not work for user-defined logger but works for root logger.

2008-07-03 Thread Carol Enderlin
My answers below... > Why the root logger defined: > > > > > > knows that all the logs from ALL the classes should go the the file > specified by appenders:taskRedirection, addQuestionSequenceOrder That's the way it's supposed to work, root logger gets everything unle

Using HTMLLayout with DailyRollingFileAppender

2008-07-03 Thread Aggarwal, Rajat
HI All, I have a requirement in one of my prjects that the log files be generated in HTML format and that they should automatically be rolled over everyday. For thi purpose, I am trying to use HTMLLayout with DailyRollingFileAppender. However, the file is not rolled over. Instead, the log infor