You can either set the logger to different levels as follows:
/*
* Setup logger of FOP component. The level of logger can be set
* using the following constants as per requirement.
*
* LEVEL_DEBUG - Debug info. of FOP execution will be logged
* LEVEL_DISABLED - No info. will be logged
* LEVEL_ERROR - Only error info. will be logged
* LEVEL_FATAL - Only Fatal error info. will be logged
* LEVEL_INFO - General info. will be logged
* LEVEL_WARN - Warning info. will be logged
*
*/
Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_DISABLED);
driver.setLogger(logger);
MessageHandler.setScreenLogger(logger);
Regards,
Uday
-----Original Message-----
From: Francisco Garc�a Leal [mailto:[EMAIL PROTECTED]
Sent: Friday, November 28, 2003 4:44 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: How can I silent completely the log?
It�s ok. It is working properly.
Thank you very much.
-----Mensaje original-----
De: Chris Bowditch [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 28 de noviembre de 2003 11:58
Para: [EMAIL PROTECTED]
Asunto: Re: How can I silent completely the log?
Francisco Garc�a Leal wrote:
> I would like to not write any log from FOP. I have been reading
FOP
> documentation and I have found that I can silent the log setting an
>
> org.apache.avalon.framework.logger.NullLogger instance in the method
> setLogger:
>
>
>
> driver.setLogger(new org.apache.avalon.framework.logger.NullLogger());
>
try the following:
Logger logger = new org.apache.avalon.framework.logger.NullLogger();
driver.setLogger(logger);
MessageHandler.setScreenLogger(logger);
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing
or copying of this email or any action taken in reliance on this e-mail is
strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]