I usually use function alertS(s) { if(window.console) window.console.log(s); else if (window.opera && window.opera.postError) window.opera.postError(s) else alert(s) }
and it goes right into the ff or firebug log. (I leave out the final else for production stuff) On 9/28/06, John Resig <[EMAIL PROTECTED]> wrote: > > From the reactions so far I'd start putting some logging statements > > into the ajax module, while working on it. > > I'd prefer to not have any logging code be built into the jQuery > source, instead, have it be added on as a plugin. jQuery is already > starting to get "fat" at 17kb. Let me put it this way: I'd rather have > good error messages than logging statements. (e.g. "There was an error > with your expression.") But I can't think of a way to get that > functionality in without increasing file size, either. > > --John > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ ░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░ ▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒░▒ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/