This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently, the number of log files in the var/log is hardcoded to three. So if a user experiences an error, and the app developer asks him for log files, the relevant file might be already gone. Allow configuring this.
If you want to provide patch, it would be in this file: http://hg.netbeans.org/ergonomics/file/default/core.startup/src/org/netbeans/core/startup/TopLogging.java However I don't believe it will help anything. The developer would first need to ask the user to reconfigure the default. Before the # of log files is reconfigured, the relevant file has the same probably to be gone as in this case. As soon as the developer talks to the user (and the error re-appers), the option is no longer needed. Marking won'tfix, but I am ready to accept the patch.
I disagree. While it may be useless to increase the number of log files after the fact, if there was a way to change that with a command line switch or a system property, a developer would change that in their app.conf according to their applications's need. I've had this problem before, and I would certainly distribute my applications with a higher number of log files without waiting for a user reporting a problem.
Created attachment 117475 [details] proposed patch
Y01 The new property should be described in core.startup/arch.xml as exported systemproperty API.
Created attachment 117527 [details] added documentation to arch.xml I used "friend" as category, I'm not sure if that's right. Also, I used "TopLogging." as a prefix since other properties used in the class had that prefix. But now I see none of them was documented, so maybe "netbeans.logger." or "org.netbeans.log." would be more appropriate?
Created attachment 117530 [details] changed property name to org.netbeans.log.numberOfFiles Same as the other patch, but system property name changed to "org.netbeans.log.numberOfFiles".
OK, to integrate I need one more thing: Y02 Write a test to check proper behavior of the property
Created attachment 118119 [details] added test cases
Nice work. The last thing I need to accept it, is to find you on the list of approved contributors: http://wiki.netbeans.org/FaqHowDoIFileACA
Waiting. Reopen when you are approved.
I sent the OCA Friday, I'm waiting for it to show on the approved list. Will reopen when it does. Thanks.
My OCA was accepted today. http://www.oracle.com/technetwork/goto/oca
http://hg.netbeans.org/ergonomics/rev/5926cc89a61b
That's great! Thanks.
Integrated into 'main-golden', will be available in build *201204260400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5926cc89a61b User: andreagualano@netbeans.org Log: #209786: Introducing org.netbeans.log.numberOfFiles property
Thank you for adding this enhancement.