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
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
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 :
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
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
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
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
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
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,
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
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
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
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
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
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
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
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.
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
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
=
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
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
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
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
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
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
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
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
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
28 matches
Mail list logo