Description of problem: A log4j file appender that will enable logging to file should be added to the log4j configuration. The file appender should be set to DEBUG (users will be able to edit it) in order to provide by default logging to file at DEBUG level. This can help in troubleshooting problems when running the engine-config tool. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Please elaborate how to test this fix.
A log file should be created under - /var/log/engine/engine-config and named engine.config It should contain DEBUG entries for the engine-config tool. Of course, It will possible to edit the log4j.xml file and to change the logging level (for example, change it to INFO) and see that debug entries are not logged anymore.
engine-config.log will be created under /var/log/ovirt-engine/engine-config.log Suggested patch - http://gerrit.ovirt.org/#/c/6569/
http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=1a209a811b7e9a90199bdc4ece369c69ac42ad6c