Hi Paul,
I was able to configure log4j for having all the logs for all tasks in a
single file.That is the beauty of log4j.
But this (separate log file per task) is a requirement and nothing much can
be done :(
Thanks any ways !!
Regards,
Vikas
-Original Message-
From: Paul Smith [mailto
> Problem statement
> --
> I have a java application(not a *web* application), where
> multiple tasks can
> be performed at a time .I want to log all the output to a file by name
> .log for each of the running tasks. Since the task name is not
> available until runtime, I canno
Hi All,
We have a j2ee web application using log4j for logging purpose. Nowadays
quite frequently we have to switch on and switch off the debugging
mechanism.
The properties file is in web-inf/classes.
We have to load the configuration file whenever it changes.
We are planning to write a ser
Oh suck it up :)
> -Original Message-
> From: Gary Gregory [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 8:55 PM
> To: Log4J Users List
> Subject: RE: unit in configureAndWatch?
>
> Sure, but the parameter could have a better than 'delay', like
> 'delayMillis' or 'interval
Hi All,
I am trying to use log4j for my java application, and am stuck with a
problem. I have already tried a search on the archive but could not find a
solution for the current problem. Please provide me with a solution or point
me to the thread if it has already been discussed.
Problem statemen
Sure, but the parameter could have a better than 'delay', like
'delayMillis' or 'intervalMillis' or somesuch.
Gary
> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 19:48
> To: Log4J Users List
> Subject: Re: unit in configureAndWatch?
At 05:05 PM 9/28/2004 -0400, you wrote:
What is the unit for the interval argument in
PropertyConfigurator.configureAndWatch( filename, interval )?
milliseconds? seconds?
The first thing to do before posting is to first check the docs and see if
you can obtain your answer there. Please do that
At 03:03 PM 9/28/2004 -0700, you wrote:
This problem was already solved, no need to raise dead topic :)
Thanks for effort though.
Really? When did you say the problem was solved? If you didn't post it,
it would be very helpful for future reference to explicitly state how you
solved the problem.
This problem was already solved, no need to raise dead topic :)
Thanks for effort though.
> -Original Message-
> From: Paul Smith [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 2:22 PM
> To: Log4J Users List
> Subject: RE: log4j with with multiple web apps? URGENT!
>
> htt
http://www.caucho.com/resin-3.0/config/env.xtp#servlet-hack
In Resin 3.0 the config name has been renamed, but it's still there.
Paul
> -Original Message-
> From: Ceki Gülcü [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 28, 2004 7:28 PM
> To: Log4J Users List
> Subject: RE: log4j
What is the unit for the interval argument in PropertyConfigurator.configureAndWatch(
filename, interval )? milliseconds? seconds?
Thanks
Jeffrey Drew
President and Founder
Trading Metrics, Inc.
917-453-0302
Hi,
You can go about this several ways. Here's one option, in a properties
configuration format.
# Define log file (appender) for "processing actions"
log4j.appender.processingActionsAppender = org.apache.log4j.FileAppender
...
# Define log file (appender) for "database actions"
log4j.appender.
Hi I'm trying to use log4j to write to two different log files at
different time . For example I want one log file to track my
"processing actions" and another log file to track my "database
actions" . I tried setting up different loggers in the configuration
but it always seems to be writing all a
Quoting Ceki Gülcü <[EMAIL PROTECTED]>:
> At 10:35 PM 9/27/2004, you wrote:
>
> >First, did you follow the other poster's instructions for configurting
> >Resin to
> >use the (or whatever it was called)? If not,
> that's
> >an absolute necessity.
>
> http://browserinsight2.lunaimaging.com:8090/f
Hi,
Yup, use the Ant-like syntax ${java.io.tmp} (I actually think you mean
java.io.tmpdir by the way).
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 28, 2004 12:00 PM
>To: [EMAIL PROTECTED]
Hi guys,
We use log4j for just about everything. I tried to do a search for this but I'm
coming up empty. Can anyone tell me if its possible to use the System property
java.io.tmp in a log4j properties file?
Thanx in advance.
Roy.
Thanka a lot Ceki ...
that was indeed the mistake ... now it works.
( one additional hint to your remark:
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
This book is sold out everywhere. Seems to be a quite good
You probably need a deny all filter at the end of the filter list.
At 05:09 PM 9/28/2004, you wrote:
Hi all,
I have problems to get the LevelMatchFilter work.
I use a xml file to configure log4j
Hi all,
I have problems to get the LevelMatchFilter work.
I use a xml file to configure log4j
After that I thougt only log messages with level "ERROR" should b
You might use the tag.
Ken Baltrinic wrote:
Francesco,
Thanks for the details, this is exactly what I was looking for. I have one final question
though. How would I reference the root logger in ?
--Ken
-Original Message-
From: Francesco Russo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, Se
Francesco,
Thanks for the details, this is exactly what I was looking for. I have one final
question though. How would I reference the root logger in ?
--Ken
-Original Message-
From: Francesco Russo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 8:59 AM
To: Log4J Users L
Hi Ken,
in order to properly use the FallbackErrorHandler you should configure
your appenders in the following way:
...
...
In the sam
Hi Ken,
in order to properly use the FallbackErrorHandler you should configure
your appenders in the following way:
...
...
In the sam
Hi,
Yes. See the SocketAppender JavaDoc.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Monday, September 27, 2004 4:25 PM
>To: Log4J Users List; Shapira, Yoav
>Subject: RE: How to use log4j in applet?
>
>Zitie
I am confused. Implement my own appender? Isn't that the purpose of the
FallbackErrorHandler is to do this for me?
The JavaDocs for the class state:
>The FallbackErrorHandler implements the ErrorHandler interface such that a
>secondary appender may be specified. This secondary appender takes o
Thanks, that was the solution.
Ceki Gülcü wrote:
The Logger.getLevel method can return null. You are probably looking for
the Logger.getEffectiveLevel method.
http://logging.apache.org/log4j/docs/api/org/apache/log4j/Category.html#getEffectiveLevel()
At 11:14 AM 9/28/2004, you wrote:
Hi everybo
Some additional notes...
The renaming of "mylog.log.x" --> "mylog.log.x+1" works but NOT "mylog.log" -->
"mylog.log.1". Therefore the backups rolls away after some rolling.
Regards
Joacim Järkeborn
IT Architect
> -Original Message-
> From: Järkeborn Joacim [mailto:[EMAIL PROTECTE
Infact as I see, in your file you didn't specified verbosely a logger
called "it.cineca.test.j2eeLog.LoggingBean" so log4j will use the
"it.cineca.test". If you call getLevel on the latter you will get a not
null level.
Anyway calling getEffectiveLevel() will work. (I didn't know it) ;-)
>
Hi Francesco I fall in the same error weeks ago.
Actually I don't understand very well xml config files, I sue property
files but anyway if you don't set explicitally a level for your logger
but you are inherithing from root logger, then your level will be null.
I wrote this just last week. In my a
At 10:35 PM 9/27/2004, you wrote:
First, did you follow the other poster's instructions for configurting
Resin to
use the (or whatever it was called)? If not, that's
an absolute necessity.
http://browserinsight2.lunaimaging.com:8090/faq/classloader.xtp
According to this document Resin 2.1.x orde
The Logger.getLevel method can return null. You are probably looking for
the Logger.getEffectiveLevel method.
http://logging.apache.org/log4j/docs/api/org/apache/log4j/Category.html#getEffectiveLevel()
At 11:14 AM 9/28/2004, you wrote:
Hi everybody,
using log4j1.2.8 I am facing a strange behaviou
Hi everybody,
using log4j1.2.8 I am facing a strange behaviour. Follows a snippet of
my configuration file:
Let us now suppose I have a class called it.cineca.test.j2eeLog.LoggingBean.
Well, whenever I call "Logger.getL
Hi,
We are using Log4J in our J2EE application with RollingFileAppender and a number of
backups.
When the appserver and application starts everything seems to work as it should, it
creates the logfile and backups after the max file size have been reached. When max
backup parameters are reac
33 matches
Mail list logo