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

2016-05-31 Thread Jeremias Maerki
Dean,
FOP uses Apache Commons Logging as the logging API. And Commons Logging
can forward log events to different logging backends such as Log4J,
java.util.logging or the console. How this is configured depends on you
and possibly your environment.

More info:
* http://xmlgraphics.apache.org/fop/2.1/embedding.html#basic-logging
* http://commons.apache.org/proper/commons-logging/guide.html#Quick_Start

Regards,
Jeremias Maerki


On 26.05.2016 17:27:32 Dean Nelson wrote:
> Jeremias,
> Why then does this message show up on Linux but does not show up on Windows? 
> Is there some other logging that is used on Windows?
> 
> Just curious since we use both platforms for Docbook and I only see that 
> message on Linux.
> 
> Regards,
> 
> Dean Nelson
> Engineering Manager
> Metriguard, Inc
> (509) 332-7526
> 
> 
> 
> -Original Message-
> From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] 
> Sent: Thursday, May 26, 2016 6:20 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Is there a way to remove "INFO org.apache.fop.apps.FOUserAgent - 
> Rendered page XXX" logs ?
> 
> 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 <bowditch_ch...@hotmail.com> 
> > 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: 
> > > fop-users-unsubscr...@xmlgraphics.apache.org
> > >  For additional commands, e-mail: 
> > > fop-users-h...@xmlgraphics.apache.org
> > > 
> > 
> > --
> > 
> > Julien LANCELOT | SonarSource
> > <http://sonarsource.com/>http://sonarsource.com
> > 
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 


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



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

2016-05-26 Thread Dean Nelson
Jeremias,
Why then does this message show up on Linux but does not show up on Windows? Is 
there some other logging that is used on Windows?

Just curious since we use both platforms for Docbook and I only see that 
message on Linux.

Regards,

Dean Nelson
Engineering Manager
Metriguard, Inc
(509) 332-7526



-Original Message-
From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] 
Sent: Thursday, May 26, 2016 6:20 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Is there a way to remove "INFO org.apache.fop.apps.FOUserAgent - 
Rendered page XXX" logs ?

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 <bowditch_ch...@hotmail.com> 
> 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: 
> > fop-users-unsubscr...@xmlgraphics.apache.org
> >  For additional commands, e-mail: 
> > fop-users-h...@xmlgraphics.apache.org
> > 
> 
> --
> 
> Julien LANCELOT | SonarSource
> <http://sonarsource.com/>http://sonarsource.com
> 
> 
> 


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

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



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

2016-05-26 Thread Jeremias Maerki
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  
> 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 
> > 
> > 
> > 
> >  -
> >  To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> >  For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> > 
> 
> -- 
> 
> Julien LANCELOT | SonarSource
> http://sonarsource.com
> 
> 
> 


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



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

2016-04-29 Thread Julien Lancelot
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 
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 
>
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
> --
Julien LANCELOT | SonarSource
http://sonarsource.com


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

2016-04-29 Thread Chris Bowditch
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 




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



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

2016-04-29 Thread Marc

I don't know if FOP use Log4j?
Else you can use a pipe with a sed to filter the stderr.
Marc
Le 28/04/2016 16:02, Julien Lancelot a écrit :

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 



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



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

2016-04-28 Thread Julien Lancelot
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