Log5Factor

2002-07-25 Thread Abhijat Thakur
We use RollingFileAppenders and for viewing the file in LogFactor5 i have added the conversionPattern to one of the appenders in our logging configuration file. log4j.appender.RS_Appender.layout.ConversionPattern=[slf5s.start]%d{DATE}[slf5s.DATE]%n%p[slf5s.PRIORITY]%n%x[slf5s.NDC]%n%t[slf5s.THRE

RE: PreparedStatementAppender

2002-07-25 Thread Mark Womack
Andrew, thanks for the submission. Can you explain what makes the PreparedStatementAppender different than the JDBCAppender included with log4j 1.2. I don't claim to be any kind of expert here, I just want to understand. thanks, -Mark > -Original Message- > From: Tumpach, Andrew J [mai

PreparedStatementAppender

2002-07-25 Thread Tumpach, Andrew J
Hi, Please consider the PreparedStatementAppender (attached) for addition to Log4J. If you'd like to add it to the web site for download before making it part of the official distribution, that would be fine, too. I'd appreciate any feedback. Andrew prep_stmt_app.jar Description: prep_stm

Re: cannot locate log4j config in an EAR (repost)

2002-07-25 Thread Edward Zarecor
>From Weblogic 6.1SP3 release notes: 069506 ClassLoader.getResources is now working when trying to access an XML file which is in the Class-Path: entry of the EJB's manifest file. You say you're using WL6.2, but I assume you mean 6.1SP2. The release notes can be found here: http://e-docs.bea.c

Using log4j and servlet logs

2002-07-25 Thread Mark Frost
Hello We use log4j extensively in our system along with Unify's ServletExec as our servlet engine. Is there any way of using a log4j appender to write to the ServletExec log using the standard method GenericServlet.log(String) ? This is a member method of the servlet so some how the appender wo

RE: using log4J with JBoss and Cactus

2002-07-25 Thread Paul Ekeland
I had already enabled the internal logging of JBoss, with no success unfortunately. This "log4j:WARN No appenders could be found for logger com.credm.babel.cactus.TestPropertyType" is output on the console screen of Ant when I try running the program. And in the class com.credm.babel.cactus.TestP

errors on weblogic console

2002-07-25 Thread Bhat, Sanjeev
Hi, In my web application, whenever an exception occurs the stack trace is displayed on the weblogic console and then an error page is shown. I started using Log4j and what I see now is that the stack trace is no longer visible on the console. Probably some configuration needs to be done for thi

cannot locate log4j config in an EAR (repost)

2002-07-25 Thread simple solution
(sorry for the duplicate posting, previous one all formatting was stripped out). we are using log4j in an enterprise application(.ear). the structure of the .ear is as follows: camps.ear | +--> camps.war +--> common.jar +--> camps-ejb.jar +--> log4j.jar +--> and other stuff.

HELP cannot locate log4j.xml in an EAR

2002-07-25 Thread simple solution
we are using log4j in an enterprise application (.ear). the structure of the .ear is as follows: camps.ear | +--> camps.war +--> common.jar +--> camps-ejb.jar +--> log4j.jar +--> and other stuff the structure of common.jar is as follows: common.jar | +--> log4j.xml +--> and

RE: using log4J with JBoss and Cactus

2002-07-25 Thread Ceki Gülcü
The fact that log4j warns about not seeing the root logger is normal because the log_server.properties file probably does not mention the root logger (which is perfectly fine.) Log4j is suspicious about not seeing the root logger mentioned in the config file and emits a warning which you can saf

RE: Does logger work with out a property file??

2002-07-25 Thread Vullanki, Srividya
Hi Again, Can any one help me out with the following questions 1. Is there a way we can check whether the property file is available to the component. If its not available,then invoke it with default values with out any file!! 2.How can i merge my application property file and the log4j proper

RE: using log4J with JBoss and Cactus

2002-07-25 Thread Paul Ekeland
Hello Ceki, Thanks for answering. So far, I have solved one of the problem: now my appenders do produce files. In the log4j.xml of JBoss, my error was to make them derive from the "org.apache.log4j.FileAppender". The correct way is to make them derive from JBoss' class.: Now, the proble

RE: The definitive guide for directing System.out/err ?

2002-07-25 Thread Greider, Herman J. (LNG)
Sorry, a more complete LoggingOutputStream was done a year and a half ago. And, mine doesn't deal with infinite recursion on errors either (as requested in the first note). So, is there a reason that LoggingOutputStream wasn't made a part of log4j? Just the infinite recursion? This would be ver

Recomdations for Appender.close()

2002-07-25 Thread Mittal, Manisha
Hi All, I am a new user for log4J. I am using AsynchAppender with JDBCAppender. What is the recomended use for close() and flush(). When should one use it and why? Thanks in advance, Manisha- -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: lack of memory

2002-07-25 Thread Shapira, Yoav
Howdy, I'd be careful about concluding anything regarding performance when you are running out of an IDE. Profile the code in a real environment first. That said, Xerces in the past has been known to have memory leaks. The more Documents you parse, the more memory it takes. I would recommend

RE: The definitive guide for directing System.out/err ?

2002-07-25 Thread Greider, Herman J. (LNG)
This needs a filter on linefeeds, but how about something like: import java.io.*; import org.apache.log4j.Logger; public class Log4jOutputStream extends ByteArrayOutputStream { Logger logger; public Log4jOutputStream(Logger myLogger) { logger = myLogger; } public v

RE: Telnet Appender, Configuration and JVM_Bind

2002-07-25 Thread FLYNN, Peter -Syntegra UK
> The additivity flag influences the way appenders attached to parent > loggers are handled. It does not affect the accumulation of loggers > attached to the same logger. So, I guess I need to have a separate logger for client applications from the one for servers... Regards, Peter ***

Re: Telnet Appender, Configuration and JVM_Bind

2002-07-25 Thread Ceki Gülcü
The additivity flag influences the way appenders attached to parent loggers are handled. It does not affect the accumulation of loggers attached to the same logger. At 11:26 25.07.2002 +0100, FLYNN, Peter -Syntegra UK wrote: >I have a centrally stored logging properties XML file, which I access

Telnet Appender, Configuration and JVM_Bind

2002-07-25 Thread FLYNN, Peter -Syntegra UK
I have a centrally stored logging properties XML file, which I access using HTTP. Inside this, I have the following snippet of XML... Even though additivity is false, the Config tries to bind the Telnet session, resulting in a JVM_Bind err

Notify if logging media runs out of space

2002-07-25 Thread Wullschleger, Donat
Hi all, In our application, if the (logging) media is full, the user should get prompted to either replace the media or move logging to another drive. I did write a custom errorhandler (see code snippet below). But it doesn't seem to work - I might have done a silly mistake... Any hints towards

RE: lack of memory

2002-07-25 Thread davout
I've stepped across a problem in the past where Xerces it doesn't seem to release objects associated with DOM trees, i.e. 'Document'. We had a junit based test harness that was running out of memory. We put a profiler on the code and found that there were a ton of Doucment instances hanging unrel

lack of memory

2002-07-25 Thread "Grübel, Nicole"
I just got told that it seems our system-memory gets overloaded by Java-Xerces. Does anybody have any idea this can occur? Could it be a problem with my configuration or with our applications that are using it? We are currently using Java VisualAge 3.5.3 with Log4J 1.1.3 Thanks for any advice!

Re: The definitive guide for directing System.out/err ?

2002-07-25 Thread Max Rydahl Andersen
That is just a way to get printStackTrace to print to a stringwriter... What if some external library (e.g. the JDK it self) writes to System.out/System.err ? I cannot recompile the jdk and replace all system.out/err/printstacktraces with that source snippet :) Thanx anyway :) /max - Origi