Hi J,

Thanks much. I am able to log them into the file after I set the
messagehandler before setting the options for FOP.

regards,

Sajeesh


                                                                           
             "J.Pietschmann"                                               
             <[EMAIL PROTECTED]                                             
             e>                                                         To 
                                       [email protected]    
             06/08/2005 10:17                                           cc 
             PM                                                            
                                                                   Subject 
                                       Re: FOP Logging Mechanism           
             Please respond to                                             
                 fop-users                                                 
                                                                           
                                                                           
                                                                           
                                                                           




Sajeesh N Kakkat wrote:
> In  FOP/AVALON case these messages were logged to the console  (Does
> anybody know how to correct the behavior ? ):
>
> [WARNING] Screen logger not set - Using ConsoleLogger.
> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
>
> and the rest to the file :
...
> Driver driver = new Driver();
>
> driver.setLogger(avalonlogger);
>
> MessageHandler.setScreenLogger(avalonlogger);
>
> Does anybody know why those 3 lines are going to console and not to the
log
> file ?

The log entries are generated by the config file reader. Set the message
handler as early as possible, before an Options object is created.

J.Pietschmann

---------------------------------------------------------------------
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