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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
28 messages Options
12
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
     [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ 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

       
12