Re: Is there a way to remove "INFO org.apache.fop.apps.FOUserAgent - Rendered page XXX" logs ?

Jeremias Maerki <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
If you run FOP from a Java application you can use
http://xmlgraphics.apache.org/fop/2.1/events.html to register an
EventListener which allows you to suppress this event.

The event ID for the "Rendered page #*" event is:
org.apache.fop.render.RendererEventProducer.endPage

HTH
Jeremias Maerki


On 29.04.2016 13:18:50 Julien Lancelot wrote:
> Thanks guys, I was hoping that their was another way, but it's ok, I'll update the configuration of the logger.
> 
> Regards,
> Julien Lancelot
> 
> On Fri, 29 Apr 2016 at 12:21 Chris Bowditch <[email protected]> wrote:
> 
> You should be able to configure Commons logger to only output Warnings
> >  and higher and ignore INFO messages
> > 
> >  Chris
> > 
> >  On 28/04/2016 15:02, Julien Lancelot wrote:
> >  > Hi,
> >  >
> >  > I'm using FOP 2.1, and when I generate a PDF, I can see the following
> >  > logs in my console :
> >  >
> >  > 15:52:59.057 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #1.
> >  > 15:52:59.140 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #2.
> >  > 15:52:59.155 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #3.
> >  > 15:52:59.159 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #4.
> >  > 15:52:59.853 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #1.
> >  > 15:52:59.890 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #2.
> >  > 15:52:59.900 INFO  org.apache.fop.apps.FOUserAgent - Rendered page #3.
> >  >
> >  > Is there a way to not generate this logs ?
> >  >
> >  > Thanks !
> >  > --
> >  > Julien LANCELOT |SonarSource
> >  > http://sonarsource.com <http://sonarsource.com/>
> > 
> > 
> > 
> >  ---------------------------------------------------------------------
> >  To unsubscribe, e-mail: [email protected]
> >  For additional commands, e-mail: [email protected]
> > 
> 
> -- 
> 
> Julien LANCELOT | SonarSource
> <http://sonarsource.com/>http://sonarsource.com
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.