From: SourceForge.net <no...@so...> - 2011-09-14 00:48:16
|
Feature Requests item #3404153, was opened at 2011-09-05 11:57 Message generated for change (Comment added) made by terryoneill You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=577092&aid=3404153&group_id=85722 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Fixed Priority: 2 Private: No Submitted By: Terry O'Neill (terryoneill) Assigned to: Terry O'Neill (terryoneill) Summary: Allow user to change the log level of output to the log Initial Comment: Currently the displayed log is set to show all logging output. It would be nice to make it possible for the user to change the level of output log information displayed. ---------------------------------------------------------------------- >Comment By: Terry O'Neill (terryoneill) Date: 2011-09-14 10:48 Message: Changing the logging.properties file changes the default properties for created loggers. However Xena specifically sets the logging level so any value you put in this file will not be used. You will need to change the Java user preferences to test this feature request. This can be found in Windows XP in the registry under: HKEY_CURRENT_USER -> Software -> JavaSoft -> Prefs Note that Xena uses default values from the xena/xena/etc/default-preference-properties file so these can be used to set the user preferences the first time. However, Xena sets the actual user preferences with these values when it is first run (which it really shouldn't) so that if these are changed after running there will be no effect as Xena now thinks these values have been specified. Also note that I have removed the specific overwriting of the loglevel value from the value in the file in all circumstances which seemed to be an undocumented feature for easily changing the loglevel. ---------------------------------------------------------------------- Comment By: Allan Cunliffe (acunliffe) Date: 2011-09-12 15:29 Message: Tested in Xena Testing Branch (Date: Fri Sep 9 12:05:57 2011 +1000) Doesn't look like this is working as expected but I might be doing something wrong. This is what I did in Windows XP: Changed logging.properties file (under C:\Program Files\Java\jre6\lib): 1. Under the Set Global properties section, I changed the level (for example, ".level = FINE") 2. I saved changes 3. I started Xena via the batch file 4. I converted a file that fails conversion 5. I examined the error message in the console, the GUI log, the Xena log, the error dialog. When I change the log level, it does not appear to alter any of the error messages listed above. When I start Xena each time I change the log level, I still see FINER, FINEST and FINE level messages in the console. Logging properties file is attached. ---------------------------------------------------------------------- Comment By: Terry O'Neill (terryoneill) Date: 2011-09-09 12:16 Message: Fixed an error where a default value from the xena/etc/default-preference-properties file would be written over whatever was in the users preference file no matter if there was already a value there. This may have been a deliberate change to allow the user to set the log level without having to find where the preferences are stored but it is bad practice considering the name of the file and the undocumented nature of this behaviour. Thus I have removed this behaviour (may be worth considering a better way for the user to change the logging level in the future). ---------------------------------------------------------------------- Comment By: Terry O'Neill (terryoneill) Date: 2011-09-05 12:03 Message: This item created for work already done by matthewoliver. Assigned to acunliffe to test functionality. This has been fixed by allowing the log level to be changed through the java preference mechanic. However there is no change to give the user control of setting this value through the GUI. Thus it must be changed directly through the operating system by looking up how the operating system handles such java preferences. In future it may be desirable to give the user control of this through the GUI. It would also be important to check that any output log information still records all levels and just the GUI display is limited. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=577092&aid=3404153&group_id=85722 |