[Dojo-interest] RE: dojo.log doesn't print objects in IE - still not working...

Naor Rosenberg nrosenberg at sharedbook.com
Sat Feb 10 08:08:25 MST 2007


Thanks Anand.
I added "dojo.log.setLevel(1);" but it's still the same - FF displays
object's details (in firebug), and IE ignores it...

n/r


Anand Krishnan wrote:
> 
> Hi
> 
> It works for me in IE if I set log level before its use.
> 
> For example
> dojo.log.setLevel(1); //Whereas 1 is for DEBUG
> 
> Anand
> -----Original Message-----
> From: dojo-interest-bounces at dojotoolkit.org
> [mailto:dojo-interest-bounces at dojotoolkit.org] On Behalf Of Naor
> Rosenberg
> Sent: Friday, February 09, 2007 3:46 PM
> To: dojo-interest at dojotoolkit.org
> Subject: Re: [Dojo-interest] dojo.log doesn't print objects in IE -
> anyone ?
> 
> 
> reposting in hope someone will pick up this time...
> 
> n/r
> 
> 
> Naor Rosenberg wrote:
>> 
>> Hi,
>> 
>> I'm printing debug messages using dojo.log  . Part of the debug
> message is
>> an object I'd like to print its current state.
>> When I'm debugging in FireFox, the debug message is working fine -
>> displays my debug message and object state (not to mention the
> leveling in
>> FireBug which is GREAT).
>> 
>> When I'm debugging in IE, printing plain text works fine, but printing
> an
>> object's current state is not working (nothing is printed).
>> 
>> Is this a limitation of dojo.log with IE, or am I doing something
> wrong?
>> 
>> Here's a snippet of my code:
>> 
>> <head>
>>    <script type="text/javascript">
>>       var djConfig = {
>>          isDebug: true
>>       };
>>    </script>
>>    <script type="text/javascript" src="dojo/dojo.js"></script>
>> </head>
>> <body>
>> <script>
>> dojo.require("dojo.debug.console");
>> 
>> var person = {
>>    name : "myName",
>>    email : "myEmail"
>> };
>> dojo.log.info('Person current state is: ', person);
>> </script>
>> </body>
>> 
>> Thanks,
>> 
>> Naor Rosenberg
>> Senior Software Engineer
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/dojo.log-doesn%27t-print-objects-in-IE-tf3180396.h
> tml#a8893213
> Sent from the Dojo mailing list archive at Nabble.com.
> 
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> 
> 

-- 
View this message in context: http://www.nabble.com/dojo.log-doesn%27t-print-objects-in-IE-tf3180396.html#a8901500
Sent from the Dojo mailing list archive at Nabble.com.



More information about the Dojo-interest mailing list