You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by kennardconsulting <ri...@kennardconsulting.com> on 2009/01/08 02:28:38 UTC

0.95: suppress debug output

Dear All,

Apologies if this is answered somewhere (I have looked, honest!), but how do
I suppress the...

   DEBUG [FOP] <some message>
   DEBUG [FOP] <some message>
   DEBUG [FOP] <some message>

...in my output? I have tried:

1. Setting the log4J category 'FOP' to 'WARN', but the 'DEBUG' messages
still appear?
2. Looking at
http://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_95/src/java/org/apache/fop/servlet/FopServlet.java,
which says it configures a 'logger to give to FOP', but I can't see where it
actually gives it to FOP?

Thanks in advance,

Richard.



-- 
View this message in context: http://www.nabble.com/0.95%3A-suppress-debug-output-tp21343956p21343956.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: 0.95: suppress debug output

Posted by kennardconsulting <ri...@kennardconsulting.com>.
Jeremias,

Perfect. Setting both 'org.apache.fop' and 'FOP' worked like a charm.

Thanks for your help,

Richard.
-- 
View this message in context: http://www.nabble.com/0.95%3A-suppress-debug-output-tp21343956p21350020.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: 0.95: suppress debug output

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 08.01.2009 02:28:38 kennardconsulting wrote:
> 
> Dear All,
> 
> Apologies if this is answered somewhere (I have looked, honest!), but how do
> I suppress the...
> 
>    DEBUG [FOP] <some message>
>    DEBUG [FOP] <some message>
>    DEBUG [FOP] <some message>
> 
> ...in my output? I have tried:
> 
> 1. Setting the log4J category 'FOP' to 'WARN', but the 'DEBUG' messages
> still appear?

If any debug-level log messages still appear it means you haven't caught
the right category, yet. Most FOP classes use a log category in the form
"org.apache.fop.*" but some command-line-related classes still use the
category "FOP" (top-level), I think. Basically, FOP just calls Apache
Commons Logging methods and doesn't care about which logging backend is
used. That means you have to make sure the right logging backend (Log4J)
is used. If you just have Log4J in the classpath and do nothing else,
that should already be the case. Not sure how else to help.

> 2. Looking at
> http://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_95/src/java/org/apache/fop/servlet/FopServlet.java,
> which says it configures a 'logger to give to FOP', but I can't see where it
> actually gives it to FOP?

Agreed. Looks like a left-over of some kind with no function.

> Thanks in advance,
> 
> Richard.
> 
> 
> 
> -- 
> View this message in context: http://www.nabble.com/0.95%3A-suppress-debug-output-tp21343956p21343956.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 



Jeremias Maerki


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