File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes question on lg4J.xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "question on lg4J.xml file" Watch "question on lg4J.xml file" New topic
Author

question on lg4J.xml file

pradeep arum
Ranch Hand

Joined: Oct 01, 2003
Posts: 130
Hi all,
Somewhere in the file we are using the below code, I got the other part of the file , but not clear on this tag, can somebody throw some light!!!

<category name="com.xxx.yyy.zzz.app.bbb">
<priority value="info"/>
<appender-ref ref="DAILY_ROLL_FILE" />
</category>

are we setting the log level to info from com.xxx.yyy.zzz.app.bbb and greater using the appender DAILY_ROLL_FILE?am i true?

thanks
Pradeep


SCJP1.4,SCBCD
Failure is not when you fall down; its only when you fail to get up again.
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1340
Not sure which part is confusing you.

When the JDK 1.4 Logging API came out, log4j changed "Category" to "Logger" and "Priority" to "Level" to make the terminology for the two more similar; the old ones are deprecated in log4j version 1.2.9.

So, your xml shows a category with a priority of info which translates to a logger with a level of info. Sounds like the answer to your question is yes. That logger/category would use the appender you mention.
[ January 27, 2005: Message edited by: Carol Enderlin ]
 
IntelliJ Java IDE
 
subject: question on lg4J.xml file
 
Threads others viewed
logging in weblogic workshop - urgent
Logging into multiple files.
log4j printing to console but not to file from eclipse
Issue in using the DatabaseServerLoginModule for encrypting the password using MD5
getAllAppenders returns empty Enumeration
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture