Changing the level in the logging.properties file will help, from

.level=INFO

to say to something like:

.level=WARN
or
.level=ERROR

Check out the tutorial at http://logging.apache.org/log4j/1.2/manual.html

--Ken

On Dec 30, 2010, at 4:40 PM, Hesham G. wrote:

> Thanks Andreas.
> 
> I have put the properties file you attached in my application root path, and 
> I started the application with the argument :
> -Djava.util.logging.config.file=logging.properties
> 
> But it still prints the logs! Is there something missing ?
> 
> Best regards ,
> Hesham 
> 
> ---------------------------------------------
> Included message :
> 
> 
>> Hi,
>> 
>> Am 30.12.2010 20:56, schrieb Hesham G.:
>>> I know this has been asked before, but I can't find its answer yet !
>>> I am upgrading to PDFBox v1.4 and I need to disable the logs printed in the 
>>> console, as it slows the code a lot while parsing the PDF.
>>> 
>>> How can I do this please ?
>> You have to specify the properity file using the following parameter
>> 
>> -Djava.util.logging.config.file=logging.properties
>> 
>> PDFBox includes a sample property file, see [1] for further information.
>> 
>> BR
>> Andreas Lehmkühler
>> 
>> [1] 
>> http://svn.apache.org/repos/asf/pdfbox/trunk/pdfbox/src/test/resources/logging.properties
>> 

Reply via email to