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 tm <tm...@felder.at> on 2007/09/10 15:40:10 UTC
FOP 9.04 change loglevel
Hi there !
i just started upgrading from fop 0.20.5 to fop 0.94 the new release works
fine, but i always get many INFO: log entries how can i change the log
leverl to warn or error ?
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP 9.04 change loglevel
Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Hi,
Thomas Margreiter a écrit :
> Adrian Cumiskey <adrian.cumiskey <at> gmail.com> writes:
>> If you are executing FOP from the fop.bat/fop shell script you can
>> change the value of LOG_LEVEL variable towards the bottom of the file.
>> Otherwise set the system property
>> org.apache.commons.logging.simplelog.defaultlog=WARN/ERROR. This can be
>> achieved by using the -D flag on the java command.
>>
>> Adrian.
>>
>> tm wrote:
>>> Hi there !
>>> i just started upgrading from fop 0.20.5 to fop 0.94 the new release works
>>> fine, but i always get many INFO: log entries how can i change the log
>>> leverl to warn or error ?
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
>>>
>>>
> if have tried this ... but doesnto work !
> i tried the following:
> first i tried
> System.setProperty("org.apache.commons.logging.simplelog.defaultlog","ERROR");
> ... but no ejject
> than i tried
> java -D org.apache.commons.logging.simplelog.defaultlog=ERROR myapplication...
>
> with this i got the following error :
>
> java.lang.NoClassDefFoundError:
> org/apache/commons/logging/simplelog/defaultlog=ERROR
> Exception in thread "main"
Check the javadoc for the org.apache.commons.logging package:
http://commons.apache.org/logging/apidocs/org/apache/commons/logging/package-summary.html
The configuration of the log level isn’t done by Commons Logging but
left to the underlying logging system. And if you’re using Java 1.4 then
this is by default the JDK Logging API. So you refer to the
corresponding package:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/package-summary.html
which gives you a link to the documentation:
http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html
which should help you getting started.
In short you will have to create a properties file that would contain
a line like
org.apache.fop.level = WARNING
and then specify the path to that file on the command line:
java -Djava.util.config.file=path/to/the/file myApplication...
and you should be done.
For a programmatic way have a look at Section 2.2 of the latter link
above.
HTH,
Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP 9.04 change loglevel
Posted by Thomas Margreiter <tm...@felder.at>.
Adrian Cumiskey <adrian.cumiskey <at> gmail.com> writes:
>
> If you are executing FOP from the fop.bat/fop shell script you can
> change the value of LOG_LEVEL variable towards the bottom of the file.
> Otherwise set the system property
> org.apache.commons.logging.simplelog.defaultlog=WARN/ERROR. This can be
> achieved by using the -D flag on the java command.
>
> Adrian.
>
> tm wrote:
> > Hi there !
> > i just started upgrading from fop 0.20.5 to fop 0.94 the new release works
> > fine, but i always get many INFO: log entries how can i change the log
> > leverl to warn or error ?
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
> >
> >
>
if have tried this ... but doesnto work !
i tried the following:
first i tried
System.setProperty("org.apache.commons.logging.simplelog.defaultlog","ERROR");
... but no ejject
than i tried
java -D org.apache.commons.logging.simplelog.defaultlog=ERROR myapplication...
with this i got the following error :
java.lang.NoClassDefFoundError:
org/apache/commons/logging/simplelog/defaultlog=ERROR
Exception in thread "main"
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP 9.04 change loglevel
Posted by Adrian Cumiskey <ad...@gmail.com>.
If you are executing FOP from the fop.bat/fop shell script you can
change the value of LOG_LEVEL variable towards the bottom of the file.
Otherwise set the system property
org.apache.commons.logging.simplelog.defaultlog=WARN/ERROR. This can be
achieved by using the -D flag on the java command.
Adrian.
tm wrote:
> Hi there !
> i just started upgrading from fop 0.20.5 to fop 0.94 the new release works
> fine, but i always get many INFO: log entries how can i change the log
> leverl to warn or error ?
>
>
>
> ---------------------------------------------------------------------
> 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