From benjamincathey at catheycompany.com Wed May 9 07:56:34 2007 From: benjamincathey at catheycompany.com (Benjamin Cathey) Date: Wed, 09 May 2007 10:56:34 -0400 Subject: [Console2] =?iso-8859-1?q?Console=B2_Question_about_log_length?= Message-ID: <20070509145634.582ab170@mail.catheycompany.com> Is there somewhere where I can set up the length of the log? I am trying to fix and extension written for firefox and am using cs.logStringMessage a LOT and with the old logger (the original console) there wasn't a size limit but I could only cut and paste one message at a time. With YOUR extension I can select all and copy and paste to a text editor. The problem is that after a certain number of lines, it starts overwriting itself and the older messages get lost. Also, is there some function to just save the log to the HDD? Maybe there is something better in java that I don't know about where I can just log messages to a file somewhere. Please let me know about the length setting. I am comfortable enough to modify the code if you tell me where and what to mod. Thanks, Benjamin Cathey System Administrator Cathey Company 4917 Tranter St. Lansing, MI 48910 USA Phone: 517.393.4720 Fax: 517.393.4225 Toll Free: 800.333.1972 "Service is Our Profession" ********************** ** LEGAL DISCLAIMER ** ********************** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. From philip.chee at gmail.com Wed May 9 08:04:45 2007 From: philip.chee at gmail.com (Philip Chee) Date: Wed, 9 May 2007 23:04:45 +0800 Subject: [Console2] =?utf-8?q?Console=C2=B2_Question_about_log_length?= In-Reply-To: <8e8943620705090802i25b587cdrc7760396e9c0b8ef@mail.gmail.com> References: <20070509141027.548d8ef5@mail.catheycompany.com> <8e8943620705090802i25b587cdrc7760396e9c0b8ef@mail.gmail.com> Message-ID: <8e8943620705090804p4efd44wa355f8ff964978e2@mail.gmail.com> ---------- Forwarded message ---------- From: Philip Chee Date: 09-May-2007 23:02 Subject: Re: Console? Question about log length To: Benjamin Cathey On 09/05/07, Benjamin Cathey wrote: Hi Benjamin, I've just taken over as maintainer of Console? so I am cc'ing this to zeniko the creator. > Is there somewhere where I can set up the length of the > log? I am trying to fix and extension written for > firefox and am using cs.logStringMessage a LOT and with > the old logger (the original console) there wasn't a > size limit but I could only cut and paste one message at > a time. With YOUR extension I can select all and copy > and paste to a text editor. The problem is that after > a certain number of lines, it starts overwriting itself > and the older messages get lost. In console2.xml look for a line that says something like: 500 and change the number 500 to something else. However I don't know the consequences of doing this. Over to Simon on this. > Also, is there some function to just save the log to > the HDD? Maybe there is something better in java that > I don't know about where I can just log messages to a > file somewhere. There is a very simple extension called JSConsoleOutput that intercepts the messages sent to the Error Console (error, warnings, exceptions, and so on) and redirects them to a file. You can look at how this extension does it. If I remember correctly it's very simple. > Please let me know about the length setting. I am > comfortable enough to modify the code if you tell me > where and what to mod. Good luck. Phil > Thanks, > Benjamin Cathey > System Administrator > Cathey Company > 4917 Tranter St. > Lansing, MI 48910 USA > Phone: 517.393.4720 > Fax: 517.393.4225 > Toll Free: 800.333.1972 > "Service is Our Profession" > > ********************** > ** LEGAL DISCLAIMER ** > ********************** > > This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. From benjamincathey at catheycompany.com Wed May 9 11:14:33 2007 From: benjamincathey at catheycompany.com (Benjamin Cathey) Date: Wed, 09 May 2007 14:14:33 -0400 Subject: [Console2] =?iso-8859-1?q?Console=B2_Question_about_log_length?= In-Reply-To: 8e8943620705090804p4efd44wa355f8ff964978e2@mail.gmail.com Message-ID: <20070509181433.efa7a916@mail.catheycompany.com> I tried changing that and it just changes back again. Don't know why - that file actually exists in 2 places. One \ and one \content\console2 One stays changed and the other doesn't and neither appears to increase the length past 500 lines. Benjamin Cathey System Administrator Cathey Company 4917 Tranter St. Lansing, MI 48910 USA Phone: 517.393.4720 Fax: 517.393.4225 Toll Free: 800.333.1972 "Service is Our Profession" ----- Original Message ----- From: Philip Chee [mailto:philip.chee at gmail.com] To: console2 at mozdev.mozdev.org Sent: Wed, 09 May 2007 11:04:45 -0400 Subject: [Console2] Console? Question about log length >->> ---------- Forwarded message ---------- From: Philip Chee >->> Date: 09-May-2007 23:02 Subject: Re: Console? >->> Question about log length To: Benjamin Cathey >->> On 09/05/07, Benjamin Cathey >->> wrote: Hi Benjamin, I've just taken >->> over as maintainer of Console? so I am cc'ing this to zeniko the >->> creator. > Is there somewhere where I can set up the length of the > log? >->> I am trying to fix and extension written for > firefox and am using >->> cs.logStringMessage a LOT and with > the old logger (the original console) >->> there wasn't a > size limit but I could only cut and paste one message at > >->> a time. With YOUR extension I can select all and copy > and paste to a text >->> editor. The problem is that after > a certain number of lines, it starts >->> overwriting itself > and the older messages get lost. In console2.xml look >->> for a line that says something like: ->> readonly="true">500 and change the number 500 to something else. >->> However I don't know the consequences of doing this. Over to Simon on >->> this. > Also, is there some function to just save the log to > the HDD? >->> Maybe there is something better in java that > I don't know about where I >->> can just log messages to a > file somewhere. There is a very simple >->> extension called JSConsoleOutput that intercepts >->> the messages sent to the Error Console (error, warnings, exceptions, and so >->> on) and redirects them to a file. You can look at how this extension does >->> it. If I remember correctly it's very simple. > Please let me know about >->> the length setting. I am > comfortable enough to modify the code if you >->> tell me > where and what to mod. Good luck. Phil > Thanks, > Benjamin >->> Cathey > System Administrator > Cathey Company > 4917 Tranter St. > Lansing, >->> MI 48910 USA > Phone: 517.393.4720 > Fax: 517.393.4225 > Toll >->> Free: 800.333.1972 > "Service is Our Profession" > > >->> ********************** > ** LEGAL DISCLAIMER ** > ********************** > > >->> This E-mail message and any attachments may contain legally privileged, >->> confidential or proprietary information. If you are not the intended >->> recipient(s), or the employee or agent responsible for delivery of this >->> message to the intended recipient(s), you are hereby notified that any >->> dissemination, distribution or copying of this E-mail message is strictly >->> prohibited. If you have received this message in error, please immediately >->> notify the sender and delete this E-mail message from your >->> computer. _______________________________________________ Console2 mailing >->> list Console2 at mozdev.mozdev.org http://www.mozdev.org/mailman/listinfo/console2 ********************** ** LEGAL DISCLAIMER ** ********************** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. From philip.chee at gmail.com Wed May 9 21:17:49 2007 From: philip.chee at gmail.com (Philip Chee) Date: Thu, 10 May 2007 12:17:49 +0800 Subject: [Console2] =?utf-8?q?Console=C2=B2_Question_about_log_length?= In-Reply-To: <20070509181433.efa7a916@mail.catheycompany.com> References: <20070509181433.efa7a916@mail.catheycompany.com> Message-ID: <8e8943620705092117t7760a02en78ba631339d14706@mail.gmail.com> On 10/05/07, Benjamin Cathey wrote: > I tried changing that and it just changes back again. > Don't know why - that file actually exists in 2 places. > One \ and one \content\console2 > One stays changed and the other doesn't and neither > appears to increase the length past 500 lines. Are you sure you are repacking the jar file correctly? Because there is only one console2.xml file in the whole .JAR file and it should be in: console2.jar!/content/console2/console2.xml. If you see two versions of this file then you are doing something terribly wrong. I have also tested this locally by changing the limit to 5000 and I'm happy to say that this is working although response gets rather sluggish by the time I reach about 3000 lines. Phil Phil From benjamincathey at catheycompany.com Thu May 10 06:18:41 2007 From: benjamincathey at catheycompany.com (Benjamin Cathey) Date: Thu, 10 May 2007 09:18:41 -0400 Subject: [Console2] =?iso-8859-1?q?Console=B2_Question_about_log_length?= In-Reply-To: 8e8943620705092117t7760a02en78ba631339d14706@mail.gmail.com Message-ID: <20070510131841.3a4c34f8@mail.catheycompany.com> You are right - I repackaged it wrong. However the extension you sent me the link to works great. Although I had to mess with it to make it compatible with a Firefox version above 1.4. Now all is happy. Thanks for the great extension! Now if only you had the ability to save to a specified log file, built into your extension :D Thanks again, Benjamin Cathey System Administrator Cathey Company 4917 Tranter St. Lansing, MI 48910 USA Phone: 517.393.4720 Fax: 517.393.4225 Toll Free: 800.333.1972 "Service is Our Profession" ----- Original Message ----- From: Philip Chee [mailto:philip.chee at gmail.com] To: Benjamin Cathey [mailto:benjamincathey at catheycompany.com] Cc: console2 at mozdev.mozdev.org Sent: Thu, 10 May 2007 00:17:49 -0400 Subject: Re: [Console2] Console? Question about log length >->> On 10/05/07, Benjamin Cathey wrote: >->> > I tried changing that and it just changes back again. >->> > Don't know why - that file actually exists in 2 places. >->> > One \ and one \content\console2 >->> >->> > One stays changed and the other doesn't and neither >->> > appears to increase the length past 500 lines. >->> >->> Are you sure you are repacking the jar file correctly? >->> Because there is only one console2.xml file in the whole >->> .JAR file and it should be in: >->> console2.jar!/content/console2/console2.xml. >->> >->> If you see two versions of this file then you are doing >->> something terribly wrong. >->> >->> I have also tested this locally by changing the limit >->> to 5000 and I'm happy to say that this is working >->> although response gets rather sluggish by the time I >->> reach about 3000 lines. >->> >->> Phil >->> >->> Phil >->> ********************** ** LEGAL DISCLAIMER ** ********************** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer.