Emmm .. I am using log4j, so when initializing the class that parses the PDF 
file I did this :
Logger logger = Logger.getLogger(MyClass.class);

logger.setLevel( Level.OFF ); 



But nothing happened ! The logs are still printed. Here is part of it :

DEBUG - processing substream token: PDFOperator{TJ}

DEBUG - processing substream token: COSName{Span}

DEBUG - processing substream token: 
COSDictionary{(COSName{ActualText}:COSString{­}) }

DEBUG - processing substream token: PDFOperator{BDC}

DEBUG - processing substream token: COSFloat{27.146}

DEBUG - processing substream token: COSInt{0}



Best regards ,
Hesham


---------------------------------------------
Included message :

> You can get rid of most logging output by setting your log level to
> something higher than Debug.  There might still be a few things going to the
> console.
> 
> -Dave
> 
> On Thu, Dec 30, 2010 at 12:56 PM, Hesham G. <[email protected]> wrote:
> 
>> 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 ?
>>
>>
>> Best regards ,
>> Hesham
>

Reply via email to