Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

logging output in jsf  RSS feed

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!