try adding to your logger and see what
happens. Also, do you see your log files getting created? Based on
what you have written, if you start up Tomcat using the default
scripts, they would end up in "CATALINA_HOME/bin/logs". Of course,
since Tomcat doesn't create directories when writin
I've now downloaded Log4J and created a log4j.xml file (modified from a
sample I found online).
I assume commons-logging will find log4j since the documentation says it is
the preferred (default) logging tool choice. My war file deploys correctly,
however I don't see any log output being generated
Thanks Jake,
Maybe I should back up...
Since Struts is using commons-logging, do I need to include any Log4J jar
files? What is commons-logging using under the covers?
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 13, 2006 1:02 AM
To: Log4J Users L
On 6/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I'm new to JAVA and log4j, but I created a singleton object to be my logger
that is used by all the classes in a single threaded project I'm working on..
Is this bad? I suppose I didn't know how to use the log4j api correctly, but I
was
I'm new to JAVA and log4j, but I created a singleton object to be my logger
that is used by all the classes in a single threaded project I'm working on..
Is this bad? I suppose I didn't know how to use the log4j api correctly, but I
was getting duplicate records in my logs, so I created a singl
Thanks a lot James, its working now :-)
Thanks & Regards,
Kailash.K.N.
- Original Message -
From: "James Stauffer" <[EMAIL PROTECTED]>
To: "Log4J Users List"
Sent: Monday, June 12, 2006 7:10 PM
Subject: Re: Having a daily, weekly, monthly and yearly roll over file.
My DateFormat
What about shared classes that operate in a server environment should be log
using static Loggers? Is there any implication when doing that?
Thanks, Kostas
On 13/06/06, Konstantinos Karadamoglou <[EMAIL PROTECTED]> wrote:
thank you Javier!
On 13/06/06, Javier Gonzalez <[EMAIL PROTECTED]> wro
thank you Javier!
On 13/06/06, Javier Gonzalez <[EMAIL PROTECTED]> wrote:
I usually like to declare them private static final. Private because I
don't want any other class accessing the logger, and static final to
keep it "separate" from the class instances.
The exception being when you are su
I usually like to declare them private static final. Private because I
don't want any other class accessing the logger, and static final to
keep it "separate" from the class instances.
The exception being when you are subclassing, then it is useful to
declare the logger on the superclass like thi
If you use log4j without any extras it's good practice to declare the logger as
private static final Logger myLog = Logger.getLogger( MyClass.class );
private: because every descendant in class hierarchie can have its own logger
instance (i.e. for fintuning the log levels)
static: because t
Hi,
I am having a problem with the DailyRollingFileAppender.
Some nights it rolls exactly as it should. Some nights, instead of
rolling and creating a new log file, it writes the current log in the previous
log (overwriting the previous log file).
When it happens (and I couldn't figure out what e
Hello all,
Which is the best practice of declaring Loggers? For instance, should they
be static, private, final? and why?
Thank you in advance, Kostas
12 matches
Mail list logo