xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sajeesh N Kakkat <ksaje...@in.ibm.com>
Subject FOP Logging Mechanism
Date Wed, 08 Jun 2005 19:47:50 GMT

Hi,

I was able to use the FOP/AVALON to log it to the LOG4j file but partially
:)

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 :

INFO  2005-06-08 21:24:10,365 - building formatting object tree
INFO  2005-06-08 21:24:10,365 - setting up fonts
ERROR 2005-06-08 21:24:10,405 - Failed to read a font metrics file: Invalid
font file (embedFile): C:\WINDOWS\Fonts\SIMSUN.TTF (unknown protocol: c)
ERROR 2005-06-08 21:24:10,405 - Failed to read a font metrics file: Invalid
font file (embedFile): C:\WINDOWS\Fonts\mssong.ttf (unknown protocol: c)
ERROR 2005-06-08 21:24:10,405 - Failed to read a font metrics file: Invalid
font file (embedFile): C:\WINDOWS\Fonts\mshei.ttf (unknown protocol: c)
INFO  2005-06-08 21:24:10,595 - [1]
DEBUG 2005-06-08 21:24:10,715 - Last page-sequence produced 1 pages.
INFO  2005-06-08 21:24:10,715 - Parsing of document complete, stopping
renderer
DEBUG 2005-06-08 21:24:10,715 - Initial heap size: 2192Kb
DEBUG 2005-06-08 21:24:10,715 - Current heap size: 2791Kb
DEBUG 2005-06-08 21:24:10,715 - Total memory used: 598Kb
DEBUG 2005-06-08 21:24:10,715 -   Memory use is indicative; no GC was
performed
DEBUG 2005-06-08 21:24:10,725 -   These figures should not be used
comparatively
DEBUG 2005-06-08 21:24:10,725 - Total time used: 360ms
DEBUG 2005-06-08 21:24:10,725 - Pages rendered: 1
DEBUG 2005-06-08 21:24:10,725 - Avg render time: 360ms/page

Heres what I am doing in the code  :

org.apache.log4j.Logger log4jlogger =
org.apache.log4j.Logger.getLogger(FOPRenderer.class);

org.apache.avalon.framework.logger.Logger avalonlogger = new
org.apache.avalon.framework.logger.Log4JLogger(log4jlogger);

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 ?

regards,

Sajeesh




                                                                           
             Sajeesh N                                                     
             Kakkat/India/IBM@                                             
             IBMIN                                                      To 
                                       fop-users@xmlgraphics.apache.org    
             06/08/2005 11:58                                           cc 
             AM                                                            
                                                                   Subject 
                                       Re: Simple Question - line spacing  
             Please respond to                                             
                 fop-users                                                 
                                                                           
                                                                           
                                                                           
                                                                           





I am trying to log the FOP messages to a log file I use in my application,
currently FOP uses avalon for looging its messages and it puts them in the
system,out. I am using the log$j framework in the application and logging
my messages to a file. Is there a way I can send the FOP messages to this
file ?


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





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


Mime
View raw message