Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Implemented
-
Trunk
Description
Currently we have two methods for display log in OFBiz throught webtools :
- https://localhost:8443/webtools/control/LogView
- https://localhost:8443/webtools/control/FetchLogs
Each method use the same line rendering and the difference is : LogView display only runtime/logs/ofbiz.log (or you can surcharge it vith debug.properties) and FecthLogs list all file name ofbiz* present on runtime/logs/ofbiz.log and offert the possibility to search only line that macth a string.
I review the code to use only one script (remove LogView.groovy) and improve following points :
- Optimise the FetchLog.groovy to display with same velocity a file with or without string chain filtering
- Add a property to change the root log directory. Under linux we use /var/log/ofbiz/
- Add a regExp to match the file name of file present in the directory. Helpful when you want to see error.log
- Complete debug.properties with comment for describe example for new properties
And last point, add refresh button on the end page to reload the log without lost your state on the page.