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
Solved

log4j, turning off logging in external library

Posted on 2006-06-16
2
283 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
2 Comments
 
LVL 6

Accepted Solution

by:
phuocnh earned 250 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
egit plugin on eclipse 8 82
how to add new optional parameter to JSP 1 49
login form jsp example 2 35
jsp insert to database example 2 44
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

809 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