RE: newbie: configuring log4j for EJB's inside weblogic

2003-07-31 Thread Andreas Bothner [ MTN - Innovation Centre ]
Hi Steven, Thank you for the response. I thought of writing a startup class because in option #1 the code PropertyConfigurator.configureAndWatch() has to be called somewhere, once instead of each application doing it. Could you give me more info on option #2 ... do you have to include the

RE: newbie: configuring log4j for EJB's inside weblogic

2003-07-31 Thread Steve Ebersole
do you have to include the log4j.jar in every ear file? yes What does the environment entry refer to? It simply defines where to find the config file. The other option here is to allow each ear file have its copy of log4j.jar and its log4j.xml/properties in the ear on the classpath. Then no

RE: newbie: configuring log4j for EJB's inside weblogic

2003-07-31 Thread Andreas Bothner [ MTN - Innovation Centre ]
Thanks Steve, I would appreciate you sending me your servlet code... Why did you say that you cannot use hot-deploy in option #1 ??? Is it possible to have a combination of both options??? -Original Message- From: Steve Ebersole [mailto:[EMAIL PROTECTED] Sent: Thursday, 31 July 2003

RE: newbie: configuring log4j for EJB's inside weblogic

2003-07-31 Thread Steve Ebersole
You cannot hot deploy because the classes are then loaded by the classloader which loaded weblogic itself (i.e., typically the jvm main classloader). Hot deployment depends on the ability to destroy and throw away an entire classloader. This goes to how j2ee apps are deployed within their

RE: newbie: configuring log4j for EJB's inside weblogic

2003-07-31 Thread Andreas Bothner [ MTN - Innovation Centre ]
When using option #2, are you actually using up more memory, ie: different classloaders loading the same log4j classes, therefore the same class is loaded into memory multiple times? Is this a consideration or is the only main concern flexibility? I thought that the configuration of log4j was

Problems with Log4j Tomcat and Mac os X

2003-07-31 Thread Neil McGrane
I cannot get log4j to write the log file, the messages appear on the consoleis there something in the Mac os X version that prevents this? Thanks Neil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: newbie: configuring log4j for EJB's inside weblogic

2003-07-31 Thread Ebersole, Steven
The init servlet code looks like: public class LoggingInitServlet extends javax.servlet.http.HttpServlet { public LoggingInitServlet() { super(); } public void init( javax.servlet.ServletConfig config ) throws javax.servlet.ServletException {

System.out - log4j conversion

2003-07-31 Thread Bob . Tarling
Hi Is there a utility available to scan java files and automatically replace System.out.println with a cat.debug and when found enter the import and Category cat declaration at the top of the file. The first part of this could be done with many search/replace tools but it'd be neat if the import

Re: System.out - log4j conversion

2003-07-31 Thread neil
Bob, Are you on unix? if so you could use sed Neil - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 31, 2003 5:19 PM Subject: System.out - log4j conversion Hi Is there a utility available to scan java files and automatically replace

Re: Problems with Log4j Tomcat and Mac os X

2003-07-31 Thread Sudarshan Krishnaprasad
please check if the console opens the xxx.log file u write to. sid. On Thursday, July 31, 2003, at 09:12 AM, Neil McGrane wrote: I cannot get log4j to write the log file, the messages appear on the consoleis there something in the Mac os X version that prevents this? Thanks Neil

RE: System.out - log4j conversion

2003-07-31 Thread Bob . Tarling
No, sorry. Various different windows versions. I thought maybe some IDE's my have refactoring tools for this kind of thing. Bob. -Original Message- From: neil [SMTP:[EMAIL PROTECTED] Sent: 31 July 2003 17:22 To: Log4J Users List Subject: Re: System.out - log4j conversion

Wrong timezone in logger output

2003-07-31 Thread Joerg Eggink
Dear all I'm using log4j on freebsd4.8 with jdk1.3 If have the following problem. The timezone seems incorrect for log statements. There is always a difference from 4 hours. E.g. current time displayed with date command Thu Jul 31 18:23:22 CEST 2003 But log statement of log4j is Jul 31

RE: System.out - log4j conversion

2003-07-31 Thread Shapira, Yoav
Howdy, Not that I know of, but this would be fairly easy to write in java. Oh one alternative does come to mind. If you use a text tool and use the fully-qualified class names, i.e org.apache.log4j.Logger logger, I think jalopy and a number of other tools will go through your source and convert

RE: System.out - log4j conversion

2003-07-31 Thread Bob . Tarling
I was thinking of writing it myself but then thought someone may well have done the same already. The FQCN is a good point. Saves me having to put the import in as well as the variable declaration. -Original Message- From: Shapira, Yoav [SMTP:[EMAIL PROTECTED] Sent: 31 July 2003 17:33

Re: Problems with Log4j Tomcat and Mac os X

2003-07-31 Thread neil
Sudarshan How? Neil - Original Message - From: Sudarshan Krishnaprasad [EMAIL PROTECTED] To: Log4J Users List [EMAIL PROTECTED] Sent: Thursday, July 31, 2003 5:24 PM Subject: Re: Problems with Log4j Tomcat and Mac os X please check if the console opens the xxx.log file u write to.

Compression for RollingFileAppender

2003-07-31 Thread Joerg Eggink
Dear all Is there a way that the RollingFileAppender compress the files (e.g. with gzip) after it is rolled over ? Regards Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Wrong timezone in logger output

2003-07-31 Thread Thomas NGUYEN
On Thu, 2003-07-31 at 18:28, Joerg Eggink wrote: Dear all I'm using log4j on freebsd4.8 with jdk1.3 If have the following problem. The timezone seems incorrect for log statements. There is always a difference from 4 hours. E.g. current time displayed with date command Thu Jul 31

Re: Wrong timezone in logger output

2003-07-31 Thread Luis DiazRojas
Hi Joerg, Let me tell you my experience it may help you. Under Solaris I had to set the TZ enviroment variable to make the logger show the correct time. In a script to run my java programs I had to write: export TZ=GMT-5 and then execute my java program as always. Maybe the GMT zone in your

XMsg: XDoclet + Log4J = XML Attribute Oriented Localization...

2003-07-31 Thread Timothy Potter
Dear Log4J users, I develop an open source framework for XML-Java connectors. Recently, I find myself having less and less time to devote to my open source project. Consequently, I'd like to extend an offer out to the Log4J community for someone to pick my XMsg framework. XMsg uses XDoclet and