In article <[EMAIL PROTECTED]>, Manuel Mall <[EMAIL PROTECTED]> wrote:
> On Monday 03 July 2006 20:27, Pascal Sancho wrote: > > > -----Original Message----- > > > From: Heinzer David [mailto:[EMAIL PROTECTED] > > > Sent: Monday, July 03, 2006 12:25 PM > > > > > > I'm contacting you because I don't understand how to use ther > > > logger of FOP. > > > I have seen the FAQ, the Jakarta website but I don't find > > > examples, which could help me. > > > I create an Java interface to use FOP 0.92 and I would like > > > to display warnings and errors in a specific window. I tried > > > to create Log and LogFactory but I don't understand how to > > > change the output display. > > > Please help, I will crack down :/ > > > > Hi David, > > I think log messages are sent to stdout (I am not a Java guru, and I > > cannot tell you how to read it). > > > > You can read a wiki page about log messages at [1], that explain some > > of them. > > > > [1] > > http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessa > >ges > > > > Also see: > http://xmlgraphics.apache.org/fop/trunk/embedding.html#basic-logging. > > Most important - FOP uses Jakarta Commons Logging. You need to read the > Jakarata Commons Logging documentation > (http://jakarta.apache.org/commons/logging/) to understand how to > configure different log options. Jakarta Commons Logging in turn is > just a thin wrapper around common log implementations like Java JDK > logging, Log4j, .... The actual configuration depends on the log > implementation you have chosen. > > So you need to first decide which log implementation you want to use. > Once you made that decision configure Jakarta Commons Logging to use > it. Then customise it as per log implementation documentation. > > > Pascal > > > > Manuel At the office, I have some code that captures the FOP logging output for subsequent display on a webpage. If you're interested in it, I can post it one Wednesday (after the U.S. holiday). IIRC, basically I created something that implements the appropriate Logger interface and stored the messages on a stack. It's only about 30 lines of code. -arturo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]