File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
LOG4J
sihani rani
Ranch Hand
Joined: Jun 22, 2010
Posts: 32
posted
Jan 11, 2012 04:47:48
0
I am using log4j to my project for logging datas.
the following code is used to create Logger instance.
private static Logger log = Logger.getLogger(Sample.class);
My question is why should we declare Logger as static?
thakns in advance.
Roberto Perillo
Bartender
Joined: Dec 28, 2007
Posts: 2212
I like...
posted
Jan 11, 2012 05:57:26
0
Let's continue this discussion
here
.
Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD -
Daileon: A Tool for Enabling Domain Annotations
I agree. Here's the link:
jrebel
subject: LOG4J
Similar Threads
Struts 1 and Log4J
Servlet Logging
How to encapsulate Logger info
log4J and java.util.logging
Logging info on server side
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter