I just don't get it ... I used the exactly the same configuration as was
posted here ...
-Ursprüngliche Nachricht-
Von: Jens Koch [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 17. Juli 2002 09:53
An: Log4J Users List
Betreff: RE: Daily rollover of log file
I just have experiences with
Hi there,
I'm using log4j to log an application running on weblogic, with the
log4j.properties file under the weblogic classpath. I am wondering is it
possible to configure log4j so that I can change what messages are to be
logged without restarting the weblogic server?
Thanks
Denis McCarthy
I hope that this is the proper way to start reporting this:
The javadoc page
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/xml/DOMConfigurato
r.html
links to
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/xml/doc-files/log4
j.dtd
as the log4j XML descriptor, but the page
Hi,
I do not see any docs on the various config params that could be used
for the PropertiesConfigurator. Have been using some based on the
examples. This however is not sufficient, and incomplete.
Has anyone come across a doc for configuration of loggers ? Has
anyone created one that is
Thanks!
On Wed, 17 Jul 2002 23:19:12 -0400, you wrote:
Dimitri PISSARENKO wrote:
Hello!
Is it possible to write an appender which prints the log messages in a
textarea of a window?
If yes, are there any examples for that?
Thanks
Dimitri PIssarenko
--
To unsubscribe, e-mail:
The properties that can be set map directly to the properties of the classes,
following the JavaBeans conventions. So if a class has a setXXX method, you can
configure the XXX property. With loggers it's a little trickier since the name of a
logger may itself include a period. Therefore the
What is the proper way to use the NDC class.
We are using the logger class in our web based application. The web
application is based on the MVC architecture where there are many event
handlers to handle each request received by the server.
In order to log the appropriate session id associated
Has anyone got CompositeRollingAppender (from contribs) working ?
It seems to be able to rollover based on time-only, and does not do
it in combination with size.
-raghu
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Solved the problem (like usual:)
The size-based logging was running to problems as the
I had ignored that the PatternLayout's pattern was introducing
header info to the message in each log entry !. This confused
my calculations.
I have tested size, time, and size + time based logging with
Raghu,
Below are three config files for the CompositeRollingAppender,
you'll be interested in the one at the bottom. You should change the
Category references to Logger (it's been a little while since I wrote
it). Hopefully this will work for you.
Kevin
#Config file for
Can someone please comment on my question below?
thanks,
Jake
Wednesday, July 17, 2002, 3:26:19 PM, you wrote:
JK Hi,
JK I have seen some cases where loggers are defined as public, some as
JK protected, some as private, and some as the default package level
JK visibility. Along the same
I use your pattern in my code. There might be an issue for classes that can
be serialized...I think I remember someone mentioning that some time back.
But if the class will not be serialized, it is not an issue.
-Mark
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
One update. I got an email from another user who said to explicitly
cast to a Logger because Logger.getInstance() returns a Category for backwards
compatibility,
so you need to cast.
So, it would be:
transient final private static Logger logger =
At 16:42 18.07.2002 -0500, Jacob Kjome wrote:
One update. I got an email from another user who said to explicitly
cast to a Logger because Logger.getInstance() returns a Category for
backwards compatibility,
so you need to cast.
The above sentence although formally correct can be misread. To
At 16:38 18.07.2002 -0500, Jacob Kjome wrote:
Hello Scott,
Thanks. Sounds like using transient also addresses Mark's comment
about serialization. So, would the consensus be the following?
transient final private static Logger logger =
Logger.getLogger{MyClass.class.getName());
Member fields
Hi,
I would like to ask that whether possible we can turn off the logger
in our code to stop the logger for writing log statements into the log
file? Is this function being implemented in the log4j? If not, do you
have any suggestion on how to implement it?
Thanks.
Kathy
--
To
Absolutely. Just set the logger priority to OFF.
For Example:
Logger.setPriority(Priority.OFF);
Simple as that.
Scott
-Original Message-
From: Kathy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 8:23 PM
To: Log4J Users List
Subject: Possible to turn off a logger in
Hi,
Can we setAdditivity=false for a logger in the logging.properties
file rather than set it in the code?
Thanks,
Kathy.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hello Ceki,
Wednesday, July 17, 2002, 6:28:28 PM, you wrote:
CG OK. Please read the section on Tomcat in log4j short manual. It should
CG also apply to Resin. Also have a look at
CG http://qos.ch/containers/sc.html especially the first solution.
Thanks, the first solution worked, however, an
19 matches
Mail list logo