Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

log4j, turning off logging in external library

Posted on 2006-06-16
2
Medium Priority
?
301 Views
Last Modified: 2008-03-03
Hello,

I am using log4j in my own own code, and, I am using the ROME library for process RSS. Does anybody know what I should put in my log4j configuration file so that only my logger.debug(...) statements go to the output, but not the debug statements that are inside ROME?

Thanks,

Adrian.
0
Comment
Question by:adrianbasheer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
phuocnh earned 1000 total points
ID: 16926225
Hi  adrianbasheer!
I don't know about ROME library, I suppose that the library begins with org.rome or something is like that
if you use log4j.xml file you put the following lines
<category name="org.rome">
     <priority value="INFO"/> <-------you can use INFO, ERROR, WARN to prevent DEBUG information.
   </category>
into log4j.xml as the sub tag of <log4j:configuration> tag.
If you use log4j.properties you should use
log4j.category.org.rome = INFO, your_appender_name
Phuoc
0
 

Author Comment

by:adrianbasheer
ID: 16932774
Hi,

Thanks a lot for your answer, now I understand things better.

Adrian.
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question