Re: Changing the log level

2014-06-09 Thread Andrew McFarland Campbell
I can get the"Can't set level for java.util.logging.ConsoleHandler" message
to appear when running the following command:

java -Djava.util.logging.config.file=logging.properties -jar fop.jar -fo
topic.fo -pdf topic.pdf

logging.properties and topic.fo are attached.

If I comment out line 4 of logging properties (.level = INFO) and uncomment
line 5 (.level = WARNING) I don't get the message.


On 6 June 2014 23:04, Luis Bernardo  wrote:

>
> At most that will impact the logging, not the FOP output. I cannot
> reproduce the issue so I don't know what causes that. If you can reproduce
> the issue when you run just FOP from the command line (i.e.: fop -c
> fop.xconf -fo input.fo -pdf output.pdf) then send your logging.properties
> file and we can investigate.
>
>
> On 6/6/14, 9:22 AM, Andrew McFarland Campbell wrote:
>
>  Thanks - that worked! I'm now getting the log info I want to see.
>
> Because I'm working with the DITA-OT, I ended up updating the ANT_OPTS
> environment variable to have
> -Djava.util.logging.config.file=C:/Dev/FOP/logging.properties in it.
>
> There is one thing that concerns me slightly. When I build the document, I
> get this message to STDOUT:
>
> [fop] Can't set level for java.util.logging.ConsoleHandler
>
> Is this something I should worry about? And how do I fix this?
>
>
> On 6 June 2014 00:35, Luis Bernardo  wrote:
>
>>
>> See http://wiki.apache.org/xmlgraphics-fop/HowTo/SetupJDK14Logging and
>> also take a look at the bottom of the fop script.
>>
>> But pretty much, a logging.properties file like this:
>>
>> handlers= java.util.logging.ConsoleHandler
>> java.util.logging.ConsoleHandler.level = FINEST
>> java.util.logging.ConsoleHandler.formatter =
>> java.util.logging.SimpleFormatter
>> #.level= INFO
>> .level= WARNING
>>
>> Followed by
>> export
>> LOGLEVEL=-Djava.util.logging.config.file=/path/to/logging.properties
>> is all you need. LOGLEVEL will then be picked up by the fop script.
>>
>>
>> On 6/5/14, 12:16 PM, Andrew McFarland Campbell wrote:
>>
>>> Hi,
>>> I'm running FOP as part of the PDF2 plugin in the DITA-OT, version 1.8.
>>> At the moment, I'm getting INFO-level messages to STDOUT. How do I
>>> change the log level so I only get WARNING and above?
>>> The version of FOP seems to be 1.1
>>> Thanks,
>>> Andrew
>>>
>>
>>
>>  -
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>


logging.properties
Description: Binary data


topic.fo
Description: Binary data

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Re: Changing the log level

2014-06-06 Thread Luis Bernardo


At most that will impact the logging, not the FOP output. I cannot 
reproduce the issue so I don't know what causes that. If you can 
reproduce the issue when you run just FOP from the command line (i.e.: 
fop -c fop.xconf -fo input.fo -pdf output.pdf) then send your 
logging.properties file and we can investigate.


On 6/6/14, 9:22 AM, Andrew McFarland Campbell wrote:

Thanks - that worked! I'm now getting the log info I want to see.
Because I'm working with the DITA-OT, I ended up updating the ANT_OPTS 
environment variable to have 
-Djava.util.logging.config.file=C:/Dev/FOP/logging.properties in it.
There is one thing that concerns me slightly. When I build the 
document, I get this message to STDOUT:


[fop] Can't set level for java.util.logging.ConsoleHandler

Is this something I should worry about? And how do I fix this?


On 6 June 2014 00:35, Luis Bernardo > wrote:



See http://wiki.apache.org/xmlgraphics-fop/HowTo/SetupJDK14Logging
and also take a look at the bottom of the fop script.

But pretty much, a logging.properties file like this:

handlers= java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = FINEST
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter
#.level= INFO
.level= WARNING

Followed by
export
LOGLEVEL=-Djava.util.logging.config.file=/path/to/logging.properties
is all you need. LOGLEVEL will then be picked up by the fop script.


On 6/5/14, 12:16 PM, Andrew McFarland Campbell wrote:

Hi,
I'm running FOP as part of the PDF2 plugin in the DITA-OT,
version 1.8.
At the moment, I'm getting INFO-level messages to STDOUT. How
do I change the log level so I only get WARNING and above?
The version of FOP seems to be 1.1
Thanks,
Andrew



-
To unsubscribe, e-mail:
[email protected]

For additional commands, e-mail:
[email protected]







Re: Changing the log level

2014-06-06 Thread Andrew McFarland Campbell
Thanks - that worked! I'm now getting the log info I want to see.

Because I'm working with the DITA-OT, I ended up updating the ANT_OPTS
environment variable to have
-Djava.util.logging.config.file=C:/Dev/FOP/logging.properties in it.

There is one thing that concerns me slightly. When I build the document, I
get this message to STDOUT:

[fop] Can't set level for java.util.logging.ConsoleHandler

Is this something I should worry about? And how do I fix this?


On 6 June 2014 00:35, Luis Bernardo  wrote:

>
> See http://wiki.apache.org/xmlgraphics-fop/HowTo/SetupJDK14Logging and
> also take a look at the bottom of the fop script.
>
> But pretty much, a logging.properties file like this:
>
> handlers= java.util.logging.ConsoleHandler
> java.util.logging.ConsoleHandler.level = FINEST
> java.util.logging.ConsoleHandler.formatter = java.util.logging.
> SimpleFormatter
> #.level= INFO
> .level= WARNING
>
> Followed by
> export LOGLEVEL=-Djava.util.logging.config.file=/path/to/logging.
> properties
> is all you need. LOGLEVEL will then be picked up by the fop script.
>
>
> On 6/5/14, 12:16 PM, Andrew McFarland Campbell wrote:
>
>> Hi,
>> I'm running FOP as part of the PDF2 plugin in the DITA-OT, version 1.8.
>> At the moment, I'm getting INFO-level messages to STDOUT. How do I change
>> the log level so I only get WARNING and above?
>> The version of FOP seems to be 1.1
>> Thanks,
>> Andrew
>>
>
>
> -
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


Re: Changing the log level

2014-06-05 Thread Luis Bernardo


See http://wiki.apache.org/xmlgraphics-fop/HowTo/SetupJDK14Logging and 
also take a look at the bottom of the fop script.


But pretty much, a logging.properties file like this:

handlers= java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = FINEST
java.util.logging.ConsoleHandler.formatter = 
java.util.logging.SimpleFormatter

#.level= INFO
.level= WARNING

Followed by
export LOGLEVEL=-Djava.util.logging.config.file=/path/to/logging.properties
is all you need. LOGLEVEL will then be picked up by the fop script.

On 6/5/14, 12:16 PM, Andrew McFarland Campbell wrote:

Hi,
I'm running FOP as part of the PDF2 plugin in the DITA-OT, version 1.8.
At the moment, I'm getting INFO-level messages to STDOUT. How do I 
change the log level so I only get WARNING and above?

The version of FOP seems to be 1.1
Thanks,
Andrew



-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]