Hi,
Could someone please tell me if I can dynamically
configure log4j (e.g changing log level) using the JMX
admin interface in Tomcat 4.1?
Thanks.
Sam
__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
To
In one application I have a chain of 5 javax.servlet.Filters. I find it
handy to pop the name of each one onto the NDC so I know where I am in the
stack.
I also use them for tracking certain recursive calls or state.
Certainly not indispensible, but very handy.
But prefer? Probably not -
I have a problem with file handler in UNIX. It is related to log4j, but may
not caused by it.
There are two web applications running, both using log4j. One is
Solaris/Weblogic and the other
Solaris/iPlanet. The WL one never had problem with file logging. But the
iPlanet always will have overflow
Hi Folks,
I'm trying to get JBoss 3.0.0 to run in NB 3.2.2. I''ve hit a little problem
which is that when I step through the source any logging code doesn't appear
in the Output Window.
I'm quite new to NB and not very familiar with Log4J so it's quite possible
that I've overlooked something
What is NB 3.2.2?
At 14:13 30.08.2002 +0100, you wrote:
Hi Folks,
I'm trying to get JBoss 3.0.0 to run in NB 3.2.2. I''ve hit a little problem
which is that when I step through the source any logging code doesn't appear
in the Output Window.
I'm quite new to NB and not very familiar with
At 08:52 30.08.2002 -0400, you wrote:
I have a problem with file handler in UNIX. It is related to log4j, but may
not caused by it.
There are two web applications running, both using log4j. One is
Solaris/Weblogic and the other
Solaris/iPlanet. The WL one never had problem with file logging. But
Thanks, but I didn't anything about this possibility in the documentation.
Could anyone please tell how it can be configured ?
Thanks in advance.
At 13:54 29/08/2002 -0500, you wrote:
Hello:
The configuration class can read a system property and substitute it. You
can build a unique log name
Thanks for the reply. Currently, that's how we do it, very simply:
theLog = Category.getInstance(logName.toString());
if (. ) {
theLog.fatal(theMessage);
}
^^
Tony Yan (Bin)
BHNSM/DOH/NYS
Tel: 518-473-1809
Email: [EMAIL PROTECTED]
That doesn't say anything about the way you attach appenders to loggers. Or?
At 09:36 30.08.2002 -0400, you wrote:
Thanks for the reply. Currently, that's how we do it, very simply:
theLog = Category.getInstance(logName.toString());
if (. ) {
theLog.fatal(theMessage);
}
NB 3.2.2 = NetBeans 3.2.2
How are you connecting to the JBoss instance for debugging? Is anything
appearing in you output console? Where is your log4j property file
directing output?
|-Original Message-
|From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
|Sent: Friday, August
I am new to Log4J. Regarding NDC, I use push() to store and pop() to get the
latest. How do I retrieve the whole stack of messages in one shot?
-Original Message-
From: Fergus Gallagher [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 2:10 AM
To: Log4J Users List
Cc: [EMAIL
I prefer NDC. It appears simpler, and I don't understand the benefits of
MDC for my applications.
Current code for a servlet that logs info by user:
NDC.push(currentUser.getCompanyId());
// do stuff
NDC.pop();
NDC.remove();
I don't see the benefits of having a key string in the above code.
You can refer to dynamic variables in your config file after having set
them dynamically by your initialization code...
appender name=A2 class=org.apache.log4j.FileAppender
param name=File value=${Barracuda.log.home}/main.log /
param name=Append value=false /
layout
At 11:18 30.08.2002 -0400, you wrote:
Hi, Ceki:
We set up appenders using static config. file thru PropertyConfigurator.
This configuration is done thru MyLog class. Currently, we have only about
a few appenders. My follow up questions should be:
How many times do you call
Hi there,
I'm using log4j in some dataObjects that are stored in each weblogic session
that a user opens. When the server attempts to serialize the dataObjects in
the session, the following error occurs (presumably because Logger is not
serializable)
Error HTTP Session Could not deserialize
We call the PropertyConfigurator each time a servlet is hit and MyLog is
initiated. Maybe that's teh problem?
thx
^^
Tony Yan (Bin)
BHNSM/DOH/NYS
Tel: 518-473-1809
Email: [EMAIL PROTECTED]
^^
NDC.push(currentUser.getCompanyId());
// do stuff
NDC.pop();
NDC.remove();
I don't see the benefits of having a key string in the above code. It
would appear to add unnecessary complexity.
Not until you need to add one or more other values (e.g. 'hostname')...
--
Eric Jain
--
To
Logger, conceptually, should not be Serializable.
You can mark the Logger fields in those dataObjects as transient, but then
when the session reactivates the field would be null; you'll have to write
logic to handle the session activating to (re)obtain the Logger instance.
This can be done
Hostname is logged within the NDC, in the do stuff section. This servlet
doesn't permit one user to be logged in twice simultaneously.
I'm not disputing the value of MDC; I'm only saying that it's overkill for
some applications.
At 8/30/2002, you wrote:
Are you running the JBoss source in debugger?
Yes.
What, if anything, does display in output console?
Nothing :(
-Original Message-
From: Ebersole, Steven [mailto:[EMAIL PROTECTED]]
Sent: 30 August 2002 17:51
To: 'Log4J Users List'
Subject: RE: NB 3.2.2 JBoss 3.0.0 Log4J ...
Are
I guess so. Since you didn't close those file handles before another
PropertyConfigurator call, they are accumulated with each servlet hit. You
can call Logger.shutdown after each session to see if it fixes the problem.
Alternatively, you may only need configure your logging at the server start
Hi, Jin:
logName is Not dynamically generated. We have serveral log names mapped
with a configuration file.
this is a piece of them:
##
# A category for logging field not found in Table
Agreed. Although I think the preferred solution is to configure your
logging at the server start due to performance concerns.
thx
^^
Tony Yan (Bin)
BHNSM/DOH/NYS
Tel: 518-473-1809
Email: [EMAIL PROTECTED]
^^
Have you tried variable substitution within a layout pattern in the
configuration file? I tried a quick test similar to
...ConversionPattern=[%t] %-5p %c - ${user.name} - %m%n
and the value of the System Property user.name was substituted in my log
file.
Hi,
Can I use JMX interface configure log4j (e.g. adding
appender, changing log level, changing pattern) now in
1.2.6? Or I can only do some of that in the current
load?
Thank you.
__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
Thank you and also Luc_Bell who made the same observation. This technique
works very well. Also, a line in the properites file like:
log4j.appender.A1.file=logs/${user.name}.log
works to provide a separate log file per user.
Thanks again.
-Dan
On Friday 30 August 2002 14:08, you
26 matches
Mail list logo