File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes logging output in jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "logging output in jsf" Watch "logging output in jsf" New topic
Author

logging output in jsf

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
does anyone know a (easy) way to output the logs (which I get it via log4j) into a JSF-Site?

I know, I can use HTMLLayout of log4j, but is this the only way?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7

No, logging appenders are plug-in components. If you don't like HTMLLayout, and Google doesn't offer anything you find preferable, you can always write your own.

Just in case you thought there was some "magic" here, I should mention that a straight text appender can be used if you want to. The logfile is simply served up as MIME type text/text in the same way any other text file would be.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: logging output in jsf
 
Similar Threads
How to imbed servlet in JSF
write output to an xml file
struts and java server faces (for the author)
how to connect log4j to remote server
Eclipse log4j update site