RE: Logging to separate files

2002-07-22 Thread Colin MacDonald
> -Original Message- > > How do I instruct each component to write to the correct logfile? > > -Original Message- > > There are multiple solutions, a simpler one of which is below: > > - create 2 loggers, each hooked with a FileAppender. > - have your component log to those separat

class loader problem with custom renderers and Jboss

2002-07-22 Thread Bill Milbratz
Log4j, used in Jboss, cannot find our app-defined renderer. (This may be more of a Jboss issue than log4j) log4j:ERROR Could not instantiate renderer [com.participate.util.logging.ValueObjectRenderer;]. The settings are correct (i.e. there aren't any typos): log4j.renderer.com.participate.u

Re: The supposedly resolved JUnit vs log4j appender problem

2002-07-22 Thread Ceki Gülcü
Gareth, You most probably have two copies of log4j lying around. At 08:26 23.07.2002 +1200, Gareth Cronin wrote: >Hi, > >Looking at the list archives, this issue has cropped up before, but there >are references to it having been fixed as of log4j 1.2.5. I am using JUnit >3.7, and when I attempt

RE: Logging to separate files

2002-07-22 Thread Daly, Michael
How do I instruct each component to write to the correct logfile? Michael S. Daly MerckVaccines.com(TM) Merck & Co., Inc. MVD IS Mail: WP97-A369 Phone: 215-652-4735 Pager: 1-888-621-5636 Fax:215-652-8846 E-mail: [EMAIL PROTECTED] -Original Message- From: Havaldar, Raghu [mailto:

RE: Logging to separate files

2002-07-22 Thread Havaldar, Raghu
There are multiple solutions, a simpler one of which is below: - create 2 loggers, each hooked with a FileAppender. - have your component log to those separate loggers. example config: log4j.rootLogger=DEBUG, log4j.logger.logger1=INFO,fileAppender1 log4j.logger.logger2=INFO,fileAppender2 log

JDBCAppender.close()

2002-07-22 Thread Mittal, Manisha
Calling JDBCAppender.close() doesnt close the FallbackErrorHandler attatched to it. And theres no close()/shutdown available on ErrorHandler either. Is there a work around for that? Thanks, Manisha- -- To unsubscribe, e-mail: For additional commands, e-mail:

The supposedly resolved JUnit vs log4j appender problem

2002-07-22 Thread Gareth Cronin
Hi, Looking at the list archives, this issue has cropped up before, but there are references to it having been fixed as of log4j 1.2.5. I am using JUnit 3.7, and when I attempt to initialise a Logger, I get the following error: log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assig

RE: how to append to different output files on the fly

2002-07-22 Thread Bill Milbratz
>Download the log4j at >http://jakarta.apache.org/log4j/jakarta-log4j-1.2.3/docs/download.html >and follow Raghu's instructions Two things: 1) The above link doesn't work for 1.2.3. I have 1.2.5. Does your above comment hold true for 1.2.5? 2) I searched the 1.2.5 docs and src for "[Rr]aghu" an

looping console appender

2002-07-22 Thread Nathaniel G. Auvil
hi all. If i use the following lines of code under log4j 1.2.2 Logger.getRootLogger().removeAllAppenders(); Logger.getRootLogger().addAppender( new ConsoleAppender( new PatternLayout( "%12.12d{ABSOLUTE} [%3.3t] [%c{1}] %m%n" ) ) ); i get the following error message and jboss dies. ERROR: inv

Re: Article on JMS logging

2002-07-22 Thread Roland Barcia
Ceki, Thank You for you feedback and suggestions. There are plenty of ways to design out the log4j classes. A full design and analysis would probably not fit into article of this nature. I would definitely put more design in each aspect of a logging architecture. I wanted to point out the be

Article on JMS logging

2002-07-22 Thread Ceki Gülcü
Curiously enough, while preparing the JMSAppender section in my book "the complete log4j manual," I came across the following article entitled "Develop an Asynchronous Logging Framework using log4j with JMS and WebSphere MQ". Here is the link: http://www7b.software.ibm.com/wsdd/library/techartic

how to specify non-standard Priority level in property files?

2002-07-22 Thread "Blümer, Jürgen (empolis GT)"
hi, the setting of the level by using a property file doesn't work. in the property file I've inserted the following line: log4j.rootLogger=SQL#.PDMSLevel, A1 the class PDMSLevel extends Level. the java code just uses the statement: PropertyConfigurator.configure(properties); the log output

SMTPAppender configuration

2002-07-22 Thread jerome gloaguen
I use a confi file, when I create a TriggeringEventEvaluator, needded by the SMTPAppender, I don't know how to configure the trigger value (number of messages to log in the email). Please help me.. ___ Do You Yahoo!? -- Une adresse @yaho