[ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12441602 ] Chris Howe commented on OFBIZ-361: ----------------------------------
Hey guys, this webtools improvement is awesome. Log4J has a couple of tricks up its sleeve for just this type of application. You can do an html appender which will create an html doc with a table for the log or you can do an xml appender (which is probably better suited for webtools integration, especially with styling the output based on log level and source). I would just submit a patch for the debug.properties file, but being as there are a few parameters that are better community set here's the explanation... add an html and/or xml appender to the root logger from # Set root logger priority and appender log4j.rootLogger=ALL, stdout, file to: # Set root logger priority and appender log4j.rootLogger=ALL, stdout, file, html, xml and the parameters for the html appender: log4j.appender.html=org.apache.log4j.DailyRollingFileAppender log4j.appender.html.File=framework/logs/htmlLog.html log4j.appender.html.DatePattern='.'yyyy-MM-dd-HH-mm'.html' log4j.appender.html.layout=org.apache.log4j.HTMLLayout and the parameters for the xml appender: # XML File appender properties. log4j.appender.xml=org.apache.log4j.RollingFileAppender log4j.appender.xml.File=framework/logs/log4j.xml log4j.appender.xml.MaxFileSize=1024KB log4j.appender.xml.MaxBackupIndex=12 log4j.appender.xml.layout=org.apache.log4j.xml.XMLLayout from the xml you can parse and pluck to your little heart's content :) > Migrate webtools debug level screens to widget and add dynamic configuration > of log4j loggers > --------------------------------------------------------------------------------------------- > > Key: OFBIZ-361 > URL: http://issues.apache.org/jira/browse/OFBIZ-361 > Project: OFBiz (The Open for Business Project) > Issue Type: New Feature > Components: framework > Environment: Linux, sun-jdk-1.5.0 > Reporter: Peter Goron > Assigned To: Jacques Le Roux > Priority: Minor > Fix For: SVN trunk > > Attachments: LogConfiguration.png, > webtools-debugging-screens-2.patch, webtools-debugging-screens.patch > > > I was looking for a way to modify logging system without having to restart > ofbiz. So I've enhanced debug level webtools screen to be able to add new > loggers and change logging level of existing ones during ofbiz execution. > In the same time, I've switched this screen from regions to screen and form > widgets. > See attached screenshot. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
