What if you just wanted to reduce the logging to errors?

-----Original Message-----
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 5:56 AM
To: [EMAIL PROTECTED]
Subject: Re: hide logging message


Varadharajan Sethuraman wrote:

> Hi,
> 
> I was running the sample of ExampleXML2PDF. 
> Its working fine. 
> 
> [ERROR] Logger not set
> [INFO] building formatting object tree
> [WARNING] Screen logger not set - Using ConsoleLogger.
> [INFO] setting up fonts
> [INFO] [1]
> [INFO] Parsing of document complete, stopping renderer
> 
> But I am getting the above message in the console.
> 
> is Logger must set in the Driver class?
> 
> or How do i hide the logging messages?

You need to do something like:

         logger=new NullLogger();
         MessageHandler.setScreenLogger(logger);
         m_fopDriver.setLogger(logger);

IIRC correctly the examples dont set the logger on MessageHandler, only on the 
Driver object.

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to