1 .. title:: MochiKit.LoggingPane - Interactive MochiKit.Logging pane
6 MochiKit.LoggingPane - Interactive MochiKit.Logging pane
14 // open a pop-up window
16 // use a div at the bottom of the document
17 createLoggingPane(true);
23 MochiKit.Logging does not have any browser dependencies and is
24 completely unobtrusive. MochiKit.LoggingPane is a browser-based
25 colored viewing pane for your :mochiref:`MochiKit.Logging` output that
26 can be used as a pop-up or inline.
28 It also allows for regex and level filtering! MochiKit.LoggingPane is
30 :mochiref:`MochiKit.Logging.debuggingBookmarklet()` if it is loaded.
36 - :mochiref:`MochiKit.Base`
37 - :mochiref:`MochiKit.Logging`
46 :mochidef:`LoggingPane(inline=false, logger=MochiKit.Logging.logger)`:
48 A listener for a :mochiref:`MochiKit.Logging` logger with an
49 interactive DOM representation.
51 If ``inline`` is ``true``, then the ``LoggingPane`` will be a
52 ``DIV`` at the bottom of the document. Otherwise, it will be in a
53 pop-up window with a name based on the calling page's URL. If
54 there is an element in the document with an id of
55 ``_MochiKit_LoggingPane``, it will be used instead of appending a
56 new ``DIV`` to the body.
58 ``logger`` is the reference to the
59 :mochiref:`MochiKit.Logging.Logger` to listen to. If not
60 specified, the global default logger is used.
65 Reference to the pop-up window (``undefined`` if
69 ``true`` if the ``LoggingPane`` is inline
72 An object with property->value mappings for each log level
73 and its color. May also be mutated on
74 ``LoggingPane.prototype`` to affect all instances. For
77 MochiKit.LoggingPane.LoggingPane.prototype.colorTable = {
86 Available in MochiKit 1.3.1+
89 :mochidef:`LoggingPane.prototype.closePane()`:
91 Close the :mochiref:`LoggingPane` (close the child window, or
92 remove the ``_MochiKit_LoggingPane`` ``DIV`` from the document).
95 Available in MochiKit 1.3.1+
102 :mochidef:`createLoggingPane(inline=false)`:
104 Create or return an existing :mochiref:`LoggingPane` for this
105 document with the given inline setting. This is preferred over
106 using :mochiref:`LoggingPane` directly, as only one
107 :mochiref:`LoggingPane` should be present in a given document.
110 Available in MochiKit 1.3.1+
116 - Bob Ippolito <bob@redivi.com>
122 Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
123 dual-licensed free software; you can redistribute it and/or modify it
124 under the terms of the `MIT License`_ or the `Academic Free License
127 .. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
128 .. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php