Hello to everybody!!!

How I do to unsubscribe?!

Thanks in advance!!!

Francesc Garrido
Àrea Tecnologia
Pedagogia Interactiva, S.L.
 
C/Marie Curie s/n 
Parc Tecnològic BCNord
08042 Barcelona
T: +34 93 253 91 94 ; F: +34 93 291 76 91 
www.pedagogiainteractiva.com
 
Advertència legal  /  Advertencia legal  /  Legal Notice

-----Original Message-----
From: Jukka Zitting [mailto:[email protected]] 
Sent: Monday, September 14, 2009 11:09 AM
To: [email protected]
Subject: Re: How to use the new logging w/ SimpleLog

Hi,

On Sat, Sep 12, 2009 at 2:26 AM, Daniel Wilson
<[email protected]> wrote:
> First, how do I make this SimpleLog write a log file?

You don't. SimpleLog is included in Commons Logging only as a last
resort when no other logging mechanism is available. Normally you
always use Commons Logging with some logging mechanism like Log4J or
the standard java.util.logging (JUL). The added value of using Commons
Logging is that the downstream user gets to choose which logging
mechanism they want to use.

The easiest solution when you start from scratch is probably to use
JUL. See [1] for instructions.

> Second, the PDFBox library contains many log.error (or similar) calls.
>
> How do I get my application's logging to capture and record those ... so
> that I can actually see what those exceptions or other messages are and do
> something about them?

Those log messages are handled by whatever logging configuration
you've specified. If you just want to manually review the logs
afterwards, then the normal logging mechanisms should be all you need.
If instead you want to be able to programmatically act on some
internal error conditions in PDFBox, then it might be better to
explicitly expose that information via some PDFBox API.

[1] http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html

BR,

Jukka Zitting

Reply via email to