isDebug and log level question

View: New views
3 Messages — Rating Filter:   Alert me  

isDebug and log level question

by Werner Punz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone, I have a set of javascript sources which
have console.debug lines.
Problem is, if I set isDebug to false then I still get
the debug output on firebug.
I am on dojo 1.0 is this a bug or expected behavior?
Is there a way to set the log level itself.

Thanks a lot

Werner Punz

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: isDebug and log level question

by Gaurav Vaish-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

: Hello everyone, I have a set of javascript sources which
: have console.debug lines.
: Problem is, if I set isDebug to false then I still get
: the debug output on firebug.
: I am on dojo 1.0 is this a bug or expected behavior?
: Is there a way to set the log level itself.

This is the expected behaviour.

If there is already a window.console defined (as is the case when firebug is
enabled), console.debug is same as window.console.debug :)

AFAIK, there's no way to set the debug-level.

Look at dojo/_firebug/firebug.js:

(Line 63 in dojo-1.1.1...)
    if((!("console" in window) || !("firebug" in console))

ie, use window.console if available!


--
Happy Hacking,
Gaurav Vaish | http://dwt.sourceforge.net
http://blogs.mastergaurav.com | http://eduzine.edujini-labs.com
--------------------------------



_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: isDebug and log level question

by Werner Punz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok then I am probably right with my assumption that
it is not possible to supress the messages once firebug is open.
Well I have been implementing a metalogging
decorator to just enable this anyway.
Thanks for the info.

Werner



Gaurav Vaish schrieb:

> : Hello everyone, I have a set of javascript sources which
> : have console.debug lines.
> : Problem is, if I set isDebug to false then I still get
> : the debug output on firebug.
> : I am on dojo 1.0 is this a bug or expected behavior?
> : Is there a way to set the log level itself.
>
> This is the expected behaviour.
>
> If there is already a window.console defined (as is the case when firebug is
> enabled), console.debug is same as window.console.debug :)
>
> AFAIK, there's no way to set the debug-level.
>
> Look at dojo/_firebug/firebug.js:
>
> (Line 63 in dojo-1.1.1...)
>     if((!("console" in window) || !("firebug" in console))
>
> ie, use window.console if available!
>
>
> --
> Happy Hacking,
> Gaurav Vaish | http://dwt.sourceforge.net
> http://blogs.mastergaurav.com | http://eduzine.edujini-labs.com
> --------------------------------
>
>
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest@...
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
>

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest