• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

question on lg4J.xml file

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic