You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Peter Goron (JIRA)" <ji...@apache.org> on 2006/10/04 22:16:20 UTC

[jira] Created: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

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
            Priority: Minor
         Attachments: LogConfiguration.png, 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12453837 ] 
            
Chris Howe commented on OFBIZ-361:
----------------------------------

I would vote yes for committing the debug.properties with one change.  change the appender name from html to css.  

log4j.rootLogger= ..change the "html" to "css" (no quotes)

log4j.appender.  ... change all "html" to "css" (no quotes)

The reasoning for this is that there is a org.apache.log4j.HTMLLayout formatter that will print the log to an html table.  using the name css would avoid confusion as this logger is using the org.apache.log4j.PatternLayout

> 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: Jacopo Cappellato
>            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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12454930 ] 
            
Chris Howe commented on OFBIZ-361:
----------------------------------

For the css style sheet, instead of including it in maincss.css,  create a debug.css and include it in the following manner.


add this to the screen definition
        <set field="layoutSettings.styleSheets[]" value="/images/maincss.css"/>
        <set field="layoutSettings.styleSheets[]" value="/images/tabstyles.css"/>
        <set field="layoutSettings.styleSheets[]" value="/images/debug.css"/>


there may need to be a slight adjustment to /webcommon/includes/header.ftl.  I remember doing something to it, but can't remember exactly what it is right now.


> 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: Jacopo Cappellato
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: log.patch, 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12440097 ] 
            
Jacques Le Roux commented on OFBIZ-361:
---------------------------------------

Thanks Jacopo, 

I just realised that I have missed some unversionned files and saw your commit in the same time, so all it's ok.

> 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12453835 ] 
            
Jacopo Cappellato commented on OFBIZ-361:
-----------------------------------------

Chris,

you are right (and I am an idiot)!! The property name was wrong... well I will not tell you how much time I've spent trying to understand why the command was not working....
About the variable thing... you are probably right too but for now I'd prefer to leave things simple.

Again, thanks

PS: is it ok if I commit the new log4j.appender.html definition for the debug.properties file?



> 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: Jacopo Cappellato
>            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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12441408 ] 
            
Jacopo Cappellato commented on OFBIZ-361:
-----------------------------------------

Peter, Jacques, all,

in revisions 462762, 462763 I've implemented a first draft of the view log screen: there is a link to it in the "Adjust debugging level" screen.
Let me know if it works for you.




> 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12440088 ] 
            
Jacopo Cappellato commented on OFBIZ-361:
-----------------------------------------

Peter, Jacques,

thanks it looks really a nice feature... now it would be really great to have the ability to see the log files from the Webtools... :-)

Jacopo

> 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

        

[jira] Updated: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Peter Goron (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OFBIZ-361?page=all ]

Peter Goron updated OFBIZ-361:
------------------------------

    Attachment: webtools-debugging-screens.patch

> 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
>            Priority: Minor
>         Attachments: LogConfiguration.png, 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12441607 ] 
            
Chris Howe commented on OFBIZ-361:
----------------------------------

Additionally, you could simply tag the conversion pattern like so:
log4j.appender.file.layout.ConversionPattern=<div class=%p>%d (%t) [%24F:%-3L:%-5p]%x %m </div>%n
and create css based on the log type

.DEBUG{
color:grey;}
.WARN{
color:blue;
font-weight:bold;}
.INFO{
color:green;}
.ERROR{
color:red;
font-weight:bold;
border: 2px solid red;}

who knew logging could be so fun ;)

> 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

        

[jira] Updated: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Peter Goron (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OFBIZ-361?page=all ]

Peter Goron updated OFBIZ-361:
------------------------------

    Attachment: LogConfiguration.png

> 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
>            Priority: Minor
>         Attachments: LogConfiguration.png, 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12440081 ] 
            
Jacques Le Roux commented on OFBIZ-361:
---------------------------------------

Jacopo,

Sorry I saw  your comments just after my commit, no pb I change the service name (I had already made formatting stuff ;o)

> 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12441452 ] 
            
Jacques Le Roux commented on OFBIZ-361:
---------------------------------------

It works well, and the ability to use font sizes in html browser is really a plus !

> 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

        

[jira] Updated: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OFBIZ-361?page=all ]

Jacopo Cappellato updated OFBIZ-361:
------------------------------------

    Attachment: webtools-debugging-screens-2.patch

Jacques,

I've seen that you are working on this issue and this is a great news, thanks.
However, could you please start your work from the attached patch? It is a slightly modified version of Peter's one: I did some formatting cleanups and other small mods (to a service name).
I have not completed my review (no more time) but the patch looks really good.

Jacopo

> 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
>         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

        

[jira] Reopened: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OFBIZ-361?page=all ]

Jacopo Cappellato reopened OFBIZ-361:
-------------------------------------

      Assignee: Jacopo Cappellato  (was: Jacques Le Roux)
             
I'd like to add the new log file definition as suggested by Chris so that the output will be formatted according to the css file and will be nice in the "ViewLog" screen of Webtools.
The appender settings I'd like to use are (mostly Chris' ones):

log4j.appender.html=org.apache.log4j.RollingFileAppender
log4j.appender.html.File=framework/logs/ofbiz.html
log4j.appender.html.MaxFileSize=200KB
log4j.appender.html.MaxBackupIndex=1
log4j.appender.html.DatePattern='.'yyyy-MM-dd-HH-mm'.html'
log4j.appender.html.layout=org.apache.log4j.PatternLayout
log4j.appender.html.layout.ConversionPattern=<div class=%p>%d (%t) [%24F:%-3L:%-5p]%x %m </div>%n

And the css are the ones provided by Chris.
Can I commit this?



> 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: Jacopo Cappellato
>            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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12452591 ] 
            
Chris Howe commented on OFBIZ-361:
----------------------------------

This may not be the best approach, but it should work.

<container>
  <label style="tabletext">${logFileContent?replace("${","$.{")}</label>
</container>



> 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: Jacopo Cappellato
>            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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12453628 ] 
            
Jacques Le Roux commented on OFBIZ-361:
---------------------------------------

Chris's idea seems good enough, isn'it ?

> 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: Jacopo Cappellato
>            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

        

[jira] Assigned: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OFBIZ-361?page=all ]

Jacques Le Roux reassigned OFBIZ-361:
-------------------------------------

    Assignee: Jacques Le Roux

> 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
>         Attachments: LogConfiguration.png, 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "David E. Jones (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12453658 ] 
            
David E. Jones commented on OFBIZ-361:
--------------------------------------

I'm about 99.99% sure that the syntax Chris put in there won't work, but I haven't tested it so it may be that this feature slipped by me "unawares".

The first thing to do with this is see a more detailed error message. I haven't had a chance to test something like this so I'm not sure what the actual problem is.

> 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: Jacopo Cappellato
>            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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12453834 ] 
            
Chris Howe commented on OFBIZ-361:
----------------------------------

your property attribute is incorrect. there is no "debug.log4j.appender.file.File" it should simply be "log4j.appender.file.File".

that should probably be set by variable as well for flexibility property="${parameters.fileProperty}" so that it can be set from the screen that calls it, which in turn could be set from a form later.

> 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: Jacopo Cappellato
>            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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12452577 ] 
            
Jacopo Cappellato commented on OFBIZ-361:
-----------------------------------------

One more issue I'd like to fixe in the ViewLog screen is this:
if in the log file are logged messages containing the ${...} notation (for example ${screen.render...}) the screen returns an error message because it tries to interpret the code... is there a way to include the log content as plain html code?
Right now in the screen definition it is included in the following way:

            <container>
                <label style="tabletext">${logFileContent}</label>
            </container>
 

> 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: Jacopo Cappellato
>            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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12453674 ] 
            
Chris Howe commented on OFBIZ-361:
----------------------------------

You're correct David, that syntax doesn't work in the screen widget (I can't confirm whether it works in platform-specific either even with an escaped curly brace).

using platform-specific and having a simple ftl file that only has

${logFileContent}

does actually work correctly.  No need to replace the ${

The error is that screen widget will process the ${screen.render...} and return nothing.  However, when run in freemarker, it does not try to process the string's ${..}

> 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: Jacopo Cappellato
>            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

        

[jira] Closed: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OFBIZ-361?page=all ]

Jacopo Cappellato closed OFBIZ-361.
-----------------------------------

    Resolution: Fixed

rev. 481544

> 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: Jacopo Cappellato
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: log.patch, 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12440084 ] 
            
Jacopo Cappellato commented on OFBIZ-361:
-----------------------------------------

Jacques,

thanks, but it was not so important... I could do it myself later... don't want to wast your time.

Thanks


> 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Peter Goron (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12440191 ] 
            
Peter Goron commented on OFBIZ-361:
-----------------------------------

Jacques, Jacopo

Thanks for your quick review :-)

Like Jacopo, I would like to be able to see logs from webtools. I've no idea on how it could be implemented.


Peter

> 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

        

[jira] Closed: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OFBIZ-361?page=all ]

Jacques Le Roux closed OFBIZ-361.
---------------------------------

    Fix Version/s: SVN trunk
       Resolution: Fixed

I did not have much time to test all features, but this patch seems well done and a must for debugging tasks. Thanks Peter.

> 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OFBIZ-361?page=comments#action_12453832 ] 
            
Jacopo Cappellato commented on OFBIZ-361:
-----------------------------------------

Chris's last comment is good... using a freemarker template seems to have solved the issue.
No I have one last (I hope) question for you!
In the action tag of the screen definition for the viewLog page I set the path to the log file to display in the following way:

<property-to-field resource="debug" property="debug.log4j.appender.file.File" field="logFileName" default="framework/logs/ofbiz.log" no-locale="true"/>

However the file is not found and so the default value "framework/logs/ofbiz.log" is always used... am I doing something wrong?

THANKS



> 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: Jacopo Cappellato
>            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

        

[jira] Updated: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Jacopo Cappellato (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OFBIZ-361?page=all ]

Jacopo Cappellato updated OFBIZ-361:
------------------------------------

    Attachment: log.patch

This is the patch I'd like to commit soon (today or tomorrow) to improve the output of the view log screen; is it ok for all?


> 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: Jacopo Cappellato
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: log.patch, 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

        

[jira] Commented: (OFBIZ-361) Migrate webtools debug level screens to widget and add dynamic configuration of log4j loggers

Posted by "Chris Howe (JIRA)" <ji...@apache.org>.
    [ 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