Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

importing log4j.xml and viewing the out put .

807603Dec 23 2007 — edited Dec 24 2007
hi iam having log4j.xml which i should use to view the output .iam using netbeans IDE .i imported import org.apache.log4j.Logger; then i added log4j.xml in source package .and apache log4j to the libraries .

*.but how to import this log4j.xml file and view the output?*
import java.util.logging.Level;
 import org.apache.log4j.Logger;
 static Logger logger = Logger.getLogger( Header.class);
the how to use * logger* to view ConsoleAppender and PatternLayout
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 21 2008
Added on Dec 23 2007
3 comments
189 views