Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create and initialize log4j in our project

 
sivakumar panchu
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to log4j ,please help me how to create and how to initialize log4j
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest and most common way to initialize log4j is to put a log4j.xml or log4j.properties configuration file on the classpath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic