problem logging the whole stack of my own Exception

2002-08-26 Thread Sven . Jankus
Hello, I planed to use Log4J for my applikation but I got a problem by logging the whole stack of my own Exception. For excample: I wrote an exceptionclass extending exception. The construktor expacts a parentexception as a parameter. And finally I overwrote the method printStackTrace to get

Antwort: problem logging the whole stack of my own Exception

2002-08-26 Thread Sven . Jankus
I forgot to attach my sample-Source :o) public class WQStart { static Logger log = Logger.getLogger(info.jankus.webquicky); /** * Die codeinit/code-Methode setzt den Logger und leiten alle * Ausgaben in Dateien um. */ private void init() { // Log4J konfigurieren

Exclude a package

2002-08-26 Thread Stephane Nicoll
Hi all, my question is simple. I would like to exclude any logs from a specific package in one of my projects. Assuming I have com.foo.myapp.. and com.foo.framework I would like that anything coming from com.foo.framework.* will NOT be logged. Is it possible? Thanks, Stéphane PS :

Re: Exclude a package

2002-08-26 Thread Ceki Gülcü
At 09:51 26.08.2002 +0200, you wrote: Hi all, my question is simple. I would like to exclude any logs from a specific package in one of my projects. Assuming I have com.foo.myapp.. and com.foo.framework I would like that anything coming from com.foo.framework.* will NOT be logged. You

RE: Exclude a package

2002-08-26 Thread sunita desai
Hi, In my Web based application, I want to log the messages from my applet(running at client side) at the server side in a file, and redirect it to Unix Syslog(As all the server side logs are getting appended to a local file as well as Syslog daemon located on same Host). But in my Applet I

Re: problem logging the whole stack of my own Exception

2002-08-26 Thread Ceki Gülcü
At 08:43 26.08.2002 +0200, you wrote: Hello, I planed to use Log4J for my applikation but I got a problem by logging the whole stack of my own Exception. For excample: I wrote an exceptionclass extending exception. The construktor expacts a parentexception as a parameter. And finally I

Unix redirection

2002-08-26 Thread Stephane Nicoll
Hi all, I have a rather simple question. Under linux, I start a Java process with unix redirection java com.foo.MyClass notification.log This is an old stuff and some parts have been updated to log4j. Log4j configuration uses notification.log as configuration file. Is it a problem if log4j

Users and / or IP addresses.

2002-08-26 Thread BS
Hi there. It seems there is know place in the LoggingEvent to place info like the user or IP address or anything like that. We use Log4J to gather all logging to a SocketServer, so it would be nice if we could see one each entry who the user is. Right now we add it to the message line, but for

Re: Users and / or IP addresses.

2002-08-26 Thread Ceki Gülcü
Bjarne, You can use the org.apache.log4j.MDC for recording such information. At 09:40 26.08.2002 +0100, you wrote: Hi there. It seems there is know place in the LoggingEvent to place info like the user or IP address or anything like that. We use Log4J to gather all logging to a SocketServer,

Re: Users and / or IP addresses.

2002-08-26 Thread Max Rydahl Andersen
You could use NDC or MDC for this instead of the message text. I even think someone has extended SocketServer to put this in automatically! /max - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 10:40 AM Subject: Users and / or IP

Re: Users and / or IP addresses.

2002-08-26 Thread Eric Jain
It seems there is know place in the LoggingEvent to place info like the user or IP address or anything like that. I was just about to ask the same thing ;-) What I currently do is to put user and host information into the MDC. If you are using servlets, you can create a javax.servlet.Filter

Re: Article Info

2002-08-26 Thread Ceki Gülcü
Vikram, Here are my comments: Note that for the build to be successful, you will need to have the Java Management Extensions (JMX) API in your classpath, as well. JMX API is not required to build log4j. The signs indicate the ordering of the logging that log4j follows. No signs

RE: Unix redirection

2002-08-26 Thread Ebersole, Steven
Is notification.log really used as configuration file? If so, this might cause problems because the redirector will truncate that file prior to appending to it, and so the file maybe empty when log4j attempts to read it to configure itself. If, instead, notification.log is just referenced in

problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread sudhendra seshachala
Hi All, I am having problems configuring log4j with Weblogic 6.1. I have the configuration for log4j as follows in a file called generic properties which get loaded by a startup class # log4j configuration

RE: log4j configuration in wsad 4.0.3

2002-08-26 Thread Wilfred Ho
Ying, I am using WSAD 4.0.3 also. I don't see a lib directory in my EJB module. Did you create it yourself? Suppose my ebj directory is ejbModule. Where is lib located? -Original Message- From: Ying Zhe [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 6:02 PM To: [EMAIL

Re: problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread sudhendra seshachala
I am loading this property file before doing anything else. This is the first thing being loaded. thanks sudhi --- Ceki Gülcü [EMAIL PROTECTED] wrote: It looks that log4j is configured using your configuration file. However, you or some other code is attempting to use log4j prior to its

JMS Queue and JMS Appender

2002-08-26 Thread sanjayrajsoni
We plan to use JMS Appender in our production environment. We want to automate the creation of Queues and JMS Servers using scripts. I have been paritially successful at this. I am able to create JMS Conx Factory, JMS File Store and JMS Server using the Commandline, for e.g.

Re: problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread Ceki Gülcü
The warning message says otherwise. At 08:25 26.08.2002 -0700, you wrote: I am loading this property file before doing anything else. This is the first thing being loaded. thanks sudhi --- Ceki Gülcü [EMAIL PROTECTED] wrote: It looks that log4j is configured using your configuration

Re: problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread sudhendra seshachala
So, can i configure the properties as follows, this would ensure that configuration is done before using log4j. public class Logger { // a private logger to log error messages during Logger operations private static org.apache.log4j.Logger s_localLogger =

RE: JMS Queue and JMS Appender

2002-08-26 Thread Ebersole, Steven
The commands you are using are weblogic-specific as you are using the weblogic.Admin tool. If you wish to keep using the weblogic-proprietary methods, then check out their E-Docs site. Specifically, http://e-docs.bea.com/wls/docs61/adminguide/cli.html#1155716 will show you how to configure

Re: problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread sudhendra seshachala
Got this working. Atleast the messages are displayed on console and the file. How to change the conversion layout to configure time as follows on console and file as well Desired: 8/25/02 1:49:31 PM Current Conversion log4j.debug=true #log4j.disable=fatal log4j.additivity.epeople=true

Re: log4j configuration in wsad 4.0.3

2002-08-26 Thread Ying Zhe
Ceki, Thank you for your response. As you said, WebSphere did have its own complex classloading mechanism up until 4.0.3. The WebSphere 4.0.3(which is the platform that I'm using now) has the standard J2EE classloading mechanism. I checked the menifest file but found that I made a typo in my

Re: problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread Ajay Dhanawade
HI Sudhi, I am not so sure of the properties file but I had used xml file and it works fine. I have put the logcfg.xml file in the home directory of weblogic which is c:\bea\wlserver. Can u try doing that? CIAO Ajay From: sudhendra seshachala [EMAIL PROTECTED] Reply-To: Log4J Users List

Re: problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread sudhendra seshachala
Hi Its working for me now. But am having problems wrt displaying INFO, WARN level messages. Only DEBUG level messages are displayed on console and the file. I am attaching the Props file as well. Thanks for help. sudhi --- Ajay Dhanawade [EMAIL PROTECTED] wrote: HI Sudhi, I am not so sure

Re: problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread sudhendra seshachala
Hi Its working for me now. But am having problems wrt displaying INFO, WARN level messages. Only DEBUG level messages are displayed on console and the file. I am attaching the Props file as well. Thanks for help. sudhi --- Ajay Dhanawade [EMAIL PROTECTED] wrote: HI Sudhi, I am not so sure

Re: problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread sudhendra seshachala
Hi Its working for me now. But am having problems wrt displaying INFO, WARN level messages. Only DEBUG level messages are displayed on console and the file. I am attaching the Props file as well. Thanks for help. sudhi --- Ajay Dhanawade [EMAIL PROTECTED] wrote: HI Sudhi, I am not so sure

[BUG]CountingQuietWriter wrongly uses # of characters instead of real# of bytes

2002-08-26 Thread Wataru Fukushima
LOG4J VERSION 1.2.6 BUG DESCRIPTION org.apache.log4j.helpers.CountingQuietWriter says in its class comment: Counts the number of bytes written. However, since its write(String) method counts it by String.length(), current result becomes number of characters instead of byte-size. IMPACT

RE: problem configuring Log4j for Weblogic 6.1

2002-08-26 Thread Arun Jannela
Can any one help me out how to do the performance test with and with out log4j. Regards, Arun -Original Message- From: Ajay Dhanawade [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 5:01 AM To: [EMAIL PROTECTED] Subject: Re: problem configuring Log4j for Weblogic 6.1 HI