You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Varadharajan Sethuraman <va...@yahoo.com> on 2004/04/05 09:22:18 UTC

hide logging message

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?

Regards
Varadharajan S



__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: hide logging message

Posted by Chris Bowditch <bo...@hotmail.com>.
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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org