Discussion:
How to set log level of default logger?
Bjoern
2008-11-27 15:36:11 UTC
Permalink
Another basic question, but maybe you could also understand it as a
"documentation bug": I have a hard time to understand how to set the
log level of the default logger?

How can I access the "default logger"? And actually how are
"listeners" and the LoggingPane related - is a LoggingPane a listener?

I guess I don't understand the Logging framework at all, except that
when I write log("something") it appears in firebug and/or the
LoggingPane...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to mochikit+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---
Per Cederberg
2008-11-27 18:37:23 UTC
Permalink
Actually, I don't think it is possible (from reading only the
documentation). The log filtering is only applied to listeners. But
even they cannot affect what is being sent to the native console.

I think you'd have to assign some of the log* methods to
MochiKit.Base.noop in order to silence their log messages. Or replace
the default logger with your own.

Now, I'm planning to revamp the logging sometime to alleviate issues
like this. While not breaking backwards compability I hope. But if you
are interested, feel free to send patches to the list.

Cheers,

/Per
Post by Bjoern
Another basic question, but maybe you could also understand it as a
"documentation bug": I have a hard time to understand how to set the
log level of the default logger?
How can I access the "default logger"? And actually how are
"listeners" and the LoggingPane related - is a LoggingPane a listener?
I guess I don't understand the Logging framework at all, except that
when I write log("something") it appears in firebug and/or the
LoggingPane...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to mochikit+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---
Bjoern
2008-11-27 22:04:24 UTC
Permalink
Thanks. I am fairly new to JavaScript frameworks and "advanced" JS
programming, but if ultimately I find an opportunity to contribute, I
will gladly do so.

So far I enjoy working with MochiKit very much.
Post by Per Cederberg
Actually, I don't think it is possible (from reading only the
documentation). The log filtering is only applied to listeners. But
even they cannot affect what is being sent to the native console.
I think you'd have to assign some of the log* methods to
MochiKit.Base.noop in order to silence their log messages. Or replace
the default logger with your own.
Now, I'm planning to revamp the logging sometime to alleviate issues
like this. While not breaking backwards compability I hope. But if you
are interested, feel free to send patches to the list.
Cheers,
/Per
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to mochikit+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Continue reading on narkive:
Loading...