Hello Everyone, Just wanted to find out if scriptaculous has a patch for a error logging class? Currently, I have found 2 javascript logging scripts (outside of scriptaculous). Lumberjack: http://gleepglop.com/javascripts/logger/ log4js: http://jroller.com/page/stritti?entry=logging_in_javascript_log4js Could you guys shed some light on what would be a good logger class to use with our scripts. Thanks in advance, Mandy.
Anyone? -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org]On Behalf Of Maninder, Singh Sent: Sunday, December 04, 2005 3:42 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] Javascript Logging Hello Everyone, Just wanted to find out if scriptaculous has a patch for a error logging class? Currently, I have found 2 javascript logging scripts (outside of scriptaculous). Lumberjack: http://gleepglop.com/javascripts/logger/ log4js: http://jroller.com/page/stritti?entry=logging_in_javascript_log4js Could you guys shed some light on what would be a good logger class to use with our scripts. Thanks in advance, Mandy. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I have a partial implementation of one built on Prototype. It''s isn''t perfect at the moment, but I have a good bit of work left to do on it. However, it does have colorized logging and it also allows you to hide/show the logging console. http://encytemedia.com/demo/logger.js Basically you use it like `logger.info(''test'')`. You can also pass `true` to the second argument to have the output treated as code (wrapped in pre and code blocks). -Justin ---------------------------------------------- Encytemedia.com Professional User Interface Design for Rails Applications On Dec 12, 2005, at 11:16 PM, Maninder, Singh wrote:> Anyone? > > > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org]On Behalf Of > Maninder, Singh > Sent: Sunday, December 04, 2005 3:42 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] Javascript Logging > > > Hello Everyone, > > Just wanted to find out if scriptaculous has a patch for a error > logging class? > > Currently, I have found 2 javascript logging scripts (outside of > scriptaculous). > > Lumberjack: http://gleepglop.com/javascripts/logger/ > log4js: http://jroller.com/page/stritti? > entry=logging_in_javascript_log4js > > Could you guys shed some light on what would be a good logger class > to use with our scripts. > > Thanks in advance, > Mandy. > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi Justin, 1. What all files do we need to include to get this logger to work? 2. What enhancements are you planning? 3. Do you, in the future, plan on extending the class to log info to the server using xmlhttp? Following is the code I tried to use but it didn''t work. Gives me a js error. <html> <head> <title>Logging</title> <script src=prototype.js language=javascript></script> <script src=scriptaculous.js language=javascript></script> <script src=logger.js language=javascript></script> <script> logger.info(''test''); </script> </head> <body> <div id="log-panel">Logging Example</div> </body> </html> Can you please help. Thank you, Mandy.
You may try to log your string after the creation of the div : <body> <div id="log-panel">Logging Example</div> <script> logger.info(''test''); </script> </body> On 12/22/05, Maninder, Singh <mandiv-W2hqgAdRMsX2eFz/2MeuCQ@public.gmane.org> wrote:> > Hi Justin, > > 1. What all files do we need to include to get this logger to work? > 2. What enhancements are you planning? > 3. Do you, in the future, plan on extending the class to log info to the > server using xmlhttp? > > Following is the code I tried to use but it didn''t work. > Gives me a js error. > > <html> > > <head> > <title>Logging</title> > <script src=prototype.js language=javascript></script> > <script src=scriptaculous.js language=javascript></script> > <script src=logger.js language=javascript></script> > <script> > logger.info(''test''); > </script> > </head> > > <body> > <div id="log-panel">Logging Example</div> > </body> > > </html> > > Can you please help. > > Thank you, > Mandy. > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Tried that. Keep getting an error in IE on line 1023 if (this.adjacency && this.element.insertAdjacentHTML) { -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org]On Behalf Of Nicolas Sent: Thursday, December 22, 2005 4:05 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] Javascript Logging You may try to log your string after the creation of the div : <body> <div id="log-panel">Logging Example</div> <script> logger.info(''test''); </script> </body> On 12/22/05, Maninder, Singh < mandiv-W2hqgAdRMsX2eFz/2MeuCQ@public.gmane.org> wrote: Hi Justin, 1. What all files do we need to include to get this logger to work? 2. What enhancements are you planning? 3. Do you, in the future, plan on extending the class to log info to the server using xmlhttp? Following is the code I tried to use but it didn''t work. Gives me a js error. <html> <head> <title>Logging</title> <script src=prototype.js language=javascript></script> <script src=scriptaculous.js language=javascript></script> <script src=logger.js language=javascript></script> <script> logger.info(''test''); </script> </head> <body> <div id="log-panel">Logging Example</div> </body> </html> Can you please help. Thank you, Mandy. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs <http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs> _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs