Simple status box for the sidebar.
[elgg_plugins.git] / yui / docs / LogReader.js.html
blobfededb7c891efce59688afb363a7d2a379f2922e
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>API: logger LogReader.js (YUI Library)</title>
5 <link rel="stylesheet" type="text/css" href="assets/api.css">
6 </head>
8 <body id="yahoo-com">
9 <div id="doc3" class="yui-t2">
11 <div id="hd">
12 <h1>Yahoo! UI Library</h1>
13 <h3>Logger Widget&nbsp; <span class="subtitle">2.2.0</span></h3>
14 <p>
15 <a href="./index.html">Yahoo! UI Library</a>
16 &gt; <a href="./module_logger.html">logger</a>
18 &gt; LogReader.js (source view)
19 </p>
20 </div>
22 <div id="bd">
23 <div id="yui-main">
24 <div class="yui-b">
26 <div id="srcout">
27 <div class="highlight" ><pre><span class="c">/****************************************************************************/</span>
28 <span class="c">/****************************************************************************/</span>
29 <span class="c">/****************************************************************************/</span>
31 <span class="c">/**</span>
32 <span class="c"> * The LogReader class provides UI to read messages logged to YAHOO.widget.Logger.</span>
33 <span class="c"> *</span>
34 <span class="c"> * @class LogReader</span>
35 <span class="c"> * @constructor</span>
36 <span class="c"> * @param elContainer {HTMLElement} (optional) DOM element reference of an existing DIV.</span>
37 <span class="c"> * @param elContainer {String} (optional) String ID of an existing DIV.</span>
38 <span class="c"> * @param oConfigs {Object} (optional) Object literal of configuration params.</span>
39 <span class="c"> */</span>
40 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">elContainer</span><span class="o">,</span> <span class="nx">oConfigs</span><span class="o">)</span> <span class="o">{</span>
41 <span class="k">var</span> <span class="nx">oSelf</span> <span class="o">=</span> <span class="k">this</span><span class="o">;</span>
42 <span class="k">this</span><span class="o">.</span><span class="nx">_sName</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">_index</span><span class="o">;</span>
43 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">_index</span><span class="o">++;</span>
45 <span class="c">// Parse config vars here</span>
46 <span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">oConfigs</span> <span class="o">==</span> <span class="s2">&quot;object&quot;</span><span class="o">)</span> <span class="o">{</span>
47 <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">param</span> <span class="k">in</span> <span class="nx">oConfigs</span><span class="o">)</span> <span class="o">{</span>
48 <span class="k">this</span><span class="o">[</span><span class="nx">param</span><span class="o">]</span> <span class="o">=</span> <span class="nx">oConfigs</span><span class="o">[</span><span class="nx">param</span><span class="o">];</span>
49 <span class="o">}</span>
50 <span class="o">}</span>
52 <span class="c">// Attach container...</span>
53 <span class="c"></span> <span class="k">if</span><span class="o">(</span><span class="nx">elContainer</span><span class="o">)</span> <span class="o">{</span>
54 <span class="k">if</span><span class="o">(</span><span class="k">typeof</span> <span class="nx">elContainer</span> <span class="o">==</span> <span class="s2">&quot;string&quot;</span><span class="o">)</span> <span class="o">{</span>
55 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">getElementById</span><span class="o">(</span><span class="nx">elContainer</span><span class="o">);</span>
56 <span class="o">}</span>
57 <span class="k">else</span> <span class="k">if</span><span class="o">(</span><span class="nx">elContainer</span><span class="o">.</span><span class="nx">tagName</span><span class="o">)</span> <span class="o">{</span>
58 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span> <span class="o">=</span> <span class="nx">elContainer</span><span class="o">;</span>
59 <span class="o">}</span>
60 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log&quot;</span><span class="o">;</span>
61 <span class="o">}</span>
62 <span class="c">// ...or create container from scratch</span>
63 <span class="c"></span> <span class="k">if</span><span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">)</span> <span class="o">{</span>
64 <span class="k">if</span><span class="o">(</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">_elDefaultContainer</span><span class="o">)</span> <span class="o">{</span>
65 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">_elDefaultContainer</span><span class="o">;</span>
66 <span class="o">}</span>
67 <span class="k">else</span> <span class="o">{</span>
68 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">body</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">));</span>
69 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">id</span> <span class="o">=</span> <span class="s2">&quot;yui-log&quot;</span><span class="o">;</span>
70 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log&quot;</span><span class="o">;</span>
72 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">_elDefaultContainer</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">;</span>
73 <span class="o">}</span>
75 <span class="c">// If implementer has provided container values, trust and set those</span>
76 <span class="c"></span> <span class="k">var</span> <span class="nx">containerStyle</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">style</span><span class="o">;</span>
77 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">width</span><span class="o">)</span> <span class="o">{</span>
78 <span class="nx">containerStyle</span><span class="o">.</span><span class="nx">width</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">width</span><span class="o">;</span>
79 <span class="o">}</span>
80 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">right</span><span class="o">)</span> <span class="o">{</span>
81 <span class="nx">containerStyle</span><span class="o">.</span><span class="nx">right</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">right</span><span class="o">;</span>
82 <span class="o">}</span>
83 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">top</span><span class="o">)</span> <span class="o">{</span>
84 <span class="nx">containerStyle</span><span class="o">.</span><span class="nx">top</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">top</span><span class="o">;</span>
85 <span class="o">}</span>
86 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">left</span><span class="o">)</span> <span class="o">{</span>
87 <span class="nx">containerStyle</span><span class="o">.</span><span class="nx">left</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">left</span><span class="o">;</span>
88 <span class="nx">containerStyle</span><span class="o">.</span><span class="nx">right</span> <span class="o">=</span> <span class="s2">&quot;auto&quot;</span><span class="o">;</span>
89 <span class="o">}</span>
90 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">bottom</span><span class="o">)</span> <span class="o">{</span>
91 <span class="nx">containerStyle</span><span class="o">.</span><span class="nx">bottom</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">bottom</span><span class="o">;</span>
92 <span class="nx">containerStyle</span><span class="o">.</span><span class="nx">top</span> <span class="o">=</span> <span class="s2">&quot;auto&quot;</span><span class="o">;</span>
93 <span class="o">}</span>
94 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">fontSize</span><span class="o">)</span> <span class="o">{</span>
95 <span class="nx">containerStyle</span><span class="o">.</span><span class="nx">fontSize</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">fontSize</span><span class="o">;</span>
96 <span class="o">}</span>
97 <span class="c">// For Opera</span>
98 <span class="c"></span> <span class="k">if</span><span class="o">(</span><span class="nx">navigator</span><span class="o">.</span><span class="nx">userAgent</span><span class="o">.</span><span class="nx">toLowerCase</span><span class="o">().</span><span class="nx">indexOf</span><span class="o">(</span><span class="s2">&quot;opera&quot;</span><span class="o">)</span> <span class="o">!=</span> <span class="o">-</span><span class="m">1</span><span class="o">)</span> <span class="o">{</span>
99 <span class="nb">document</span><span class="o">.</span><span class="nx">body</span><span class="o">.</span><span class="nx">style</span> <span class="o">+=</span> <span class="s1">&#39;&#39;</span><span class="o">;</span>
100 <span class="o">}</span>
101 <span class="o">}</span>
103 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">)</span> <span class="o">{</span>
104 <span class="c">// Create header</span>
105 <span class="c"></span> <span class="k">if</span><span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">_elHd</span><span class="o">)</span> <span class="o">{</span>
106 <span class="k">this</span><span class="o">.</span><span class="nx">_elHd</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">));</span>
107 <span class="k">this</span><span class="o">.</span><span class="nx">_elHd</span><span class="o">.</span><span class="nx">id</span> <span class="o">=</span> <span class="s2">&quot;yui-log-hd&quot;</span> <span class="o">+</span> <span class="k">this</span><span class="o">.</span><span class="nx">_sName</span><span class="o">;</span>
108 <span class="k">this</span><span class="o">.</span><span class="nx">_elHd</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-hd&quot;</span><span class="o">;</span>
110 <span class="k">this</span><span class="o">.</span><span class="nx">_elCollapse</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elHd</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">));</span>
111 <span class="k">this</span><span class="o">.</span><span class="nx">_elCollapse</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-btns&quot;</span><span class="o">;</span>
113 <span class="k">this</span><span class="o">.</span><span class="nx">_btnCollapse</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;input&quot;</span><span class="o">);</span>
114 <span class="k">this</span><span class="o">.</span><span class="nx">_btnCollapse</span><span class="o">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s2">&quot;button&quot;</span><span class="o">;</span>
115 <span class="k">this</span><span class="o">.</span><span class="nx">_btnCollapse</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">fontSize</span> <span class="o">=</span>
116 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Dom</span><span class="o">.</span><span class="nx">getStyle</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">,</span><span class="s2">&quot;fontSize&quot;</span><span class="o">);</span>
117 <span class="k">this</span><span class="o">.</span><span class="nx">_btnCollapse</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-button&quot;</span><span class="o">;</span>
118 <span class="k">this</span><span class="o">.</span><span class="nx">_btnCollapse</span><span class="o">.</span><span class="nx">value</span> <span class="o">=</span> <span class="s2">&quot;Collapse&quot;</span><span class="o">;</span>
119 <span class="k">this</span><span class="o">.</span><span class="nx">_btnCollapse</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elCollapse</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_btnCollapse</span><span class="o">);</span>
120 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Event</span><span class="o">.</span><span class="nx">addListener</span><span class="o">(</span>
121 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_btnCollapse</span><span class="o">,</span><span class="s1">&#39;click&#39;</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">_onClickCollapseBtn</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">);</span>
123 <span class="k">this</span><span class="o">.</span><span class="nx">_title</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elHd</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;h4&quot;</span><span class="o">));</span>
124 <span class="k">this</span><span class="o">.</span><span class="nx">_title</span><span class="o">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s2">&quot;Logger Console&quot;</span><span class="o">;</span>
126 <span class="c">// If Drag and Drop utility is available...</span>
127 <span class="c"></span> <span class="c">// ...and this container was created from scratch...</span>
128 <span class="c"></span> <span class="c">// ...then make the header draggable</span>
129 <span class="c"></span> <span class="k">if</span><span class="o">(</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">DD</span> <span class="o">&amp;&amp;</span>
130 <span class="o">(</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">_elDefaultContainer</span> <span class="o">==</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">))</span> <span class="o">{</span>
131 <span class="k">var</span> <span class="nx">ylog_dd</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">DD</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">id</span><span class="o">);</span>
132 <span class="nx">ylog_dd</span><span class="o">.</span><span class="nx">setHandleElId</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elHd</span><span class="o">.</span><span class="nx">id</span><span class="o">);</span>
133 <span class="k">this</span><span class="o">.</span><span class="nx">_elHd</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">cursor</span> <span class="o">=</span> <span class="s2">&quot;move&quot;</span><span class="o">;</span>
134 <span class="o">}</span>
135 <span class="o">}</span>
136 <span class="c">// Ceate console</span>
137 <span class="c"></span> <span class="k">if</span><span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">)</span> <span class="o">{</span>
138 <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span> <span class="o">=</span>
139 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">));</span>
140 <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-bd&quot;</span><span class="o">;</span>
142 <span class="c">// If implementer has provided console, trust and set those</span>
143 <span class="c"></span> <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">height</span><span class="o">)</span> <span class="o">{</span>
144 <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">height</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">height</span><span class="o">;</span>
145 <span class="o">}</span>
146 <span class="o">}</span>
147 <span class="c">// Don&#39;t create footer if disabled</span>
148 <span class="c"></span> <span class="k">if</span><span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="o">.</span><span class="nx">footerEnabled</span><span class="o">)</span> <span class="o">{</span>
149 <span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">));</span>
150 <span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-ft&quot;</span><span class="o">;</span>
152 <span class="k">this</span><span class="o">.</span><span class="nx">_elBtns</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">));</span>
153 <span class="k">this</span><span class="o">.</span><span class="nx">_elBtns</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-btns&quot;</span><span class="o">;</span>
155 <span class="k">this</span><span class="o">.</span><span class="nx">_btnPause</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;input&quot;</span><span class="o">);</span>
156 <span class="k">this</span><span class="o">.</span><span class="nx">_btnPause</span><span class="o">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s2">&quot;button&quot;</span><span class="o">;</span>
157 <span class="k">this</span><span class="o">.</span><span class="nx">_btnPause</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">fontSize</span> <span class="o">=</span>
158 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Dom</span><span class="o">.</span><span class="nx">getStyle</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">,</span><span class="s2">&quot;fontSize&quot;</span><span class="o">);</span>
159 <span class="k">this</span><span class="o">.</span><span class="nx">_btnPause</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-button&quot;</span><span class="o">;</span>
160 <span class="k">this</span><span class="o">.</span><span class="nx">_btnPause</span><span class="o">.</span><span class="nx">value</span> <span class="o">=</span> <span class="s2">&quot;Pause&quot;</span><span class="o">;</span>
161 <span class="k">this</span><span class="o">.</span><span class="nx">_btnPause</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elBtns</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_btnPause</span><span class="o">);</span>
162 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Event</span><span class="o">.</span><span class="nx">addListener</span><span class="o">(</span>
163 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_btnPause</span><span class="o">,</span><span class="s1">&#39;click&#39;</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">_onClickPauseBtn</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">);</span>
165 <span class="k">this</span><span class="o">.</span><span class="nx">_btnClear</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;input&quot;</span><span class="o">);</span>
166 <span class="k">this</span><span class="o">.</span><span class="nx">_btnClear</span><span class="o">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s2">&quot;button&quot;</span><span class="o">;</span>
167 <span class="k">this</span><span class="o">.</span><span class="nx">_btnClear</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">fontSize</span> <span class="o">=</span>
168 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Dom</span><span class="o">.</span><span class="nx">getStyle</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">,</span><span class="s2">&quot;fontSize&quot;</span><span class="o">);</span>
169 <span class="k">this</span><span class="o">.</span><span class="nx">_btnClear</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-button&quot;</span><span class="o">;</span>
170 <span class="k">this</span><span class="o">.</span><span class="nx">_btnClear</span><span class="o">.</span><span class="nx">value</span> <span class="o">=</span> <span class="s2">&quot;Clear&quot;</span><span class="o">;</span>
171 <span class="k">this</span><span class="o">.</span><span class="nx">_btnClear</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elBtns</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_btnClear</span><span class="o">);</span>
172 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Event</span><span class="o">.</span><span class="nx">addListener</span><span class="o">(</span>
173 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_btnClear</span><span class="o">,</span><span class="s1">&#39;click&#39;</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">_onClickClearBtn</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">);</span>
175 <span class="k">this</span><span class="o">.</span><span class="nx">_elCategoryFilters</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">));</span>
176 <span class="k">this</span><span class="o">.</span><span class="nx">_elCategoryFilters</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-categoryfilters&quot;</span><span class="o">;</span>
177 <span class="k">this</span><span class="o">.</span><span class="nx">_elSourceFilters</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">));</span>
178 <span class="k">this</span><span class="o">.</span><span class="nx">_elSourceFilters</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-sourcefilters&quot;</span><span class="o">;</span>
179 <span class="o">}</span>
180 <span class="o">}</span>
182 <span class="c">// Initialize internal vars</span>
183 <span class="c"></span> <span class="k">if</span><span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">_buffer</span><span class="o">)</span> <span class="o">{</span>
184 <span class="k">this</span><span class="o">.</span><span class="nx">_buffer</span> <span class="o">=</span> <span class="o">[];</span> <span class="c">// output buffer</span>
185 <span class="c"></span> <span class="o">}</span>
186 <span class="c">// Timestamp of last log message to console</span>
187 <span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_lastTime</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">getStartTime</span><span class="o">();</span>
189 <span class="c">// Subscribe to Logger custom events</span>
190 <span class="c"></span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">newLogEvent</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_onNewLog</span><span class="o">,</span> <span class="k">this</span><span class="o">);</span>
191 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">logResetEvent</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_onReset</span><span class="o">,</span> <span class="k">this</span><span class="o">);</span>
193 <span class="c">// Initialize category filters</span>
194 <span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_categoryFilters</span> <span class="o">=</span> <span class="o">[];</span>
195 <span class="k">var</span> <span class="nx">catsLen</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">categories</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
196 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elCategoryFilters</span><span class="o">)</span> <span class="o">{</span>
197 <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">catsLen</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
198 <span class="k">this</span><span class="o">.</span><span class="nx">_createCategoryCheckbox</span><span class="o">(</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">categories</span><span class="o">[</span><span class="nx">i</span><span class="o">]);</span>
199 <span class="o">}</span>
200 <span class="o">}</span>
201 <span class="c">// Initialize source filters</span>
202 <span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_sourceFilters</span> <span class="o">=</span> <span class="o">[];</span>
203 <span class="k">var</span> <span class="nx">sourcesLen</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">sources</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
204 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elSourceFilters</span><span class="o">)</span> <span class="o">{</span>
205 <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">j</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">j</span> <span class="o">&lt;</span> <span class="nx">sourcesLen</span><span class="o">;</span> <span class="nx">j</span><span class="o">++)</span> <span class="o">{</span>
206 <span class="k">this</span><span class="o">.</span><span class="nx">_createSourceCheckbox</span><span class="o">(</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">sources</span><span class="o">[</span><span class="nx">j</span><span class="o">]);</span>
207 <span class="o">}</span>
208 <span class="o">}</span>
209 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">categoryCreateEvent</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_onCategoryCreate</span><span class="o">,</span> <span class="k">this</span><span class="o">);</span>
210 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">sourceCreateEvent</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_onSourceCreate</span><span class="o">,</span> <span class="k">this</span><span class="o">);</span>
212 <span class="k">this</span><span class="o">.</span><span class="nx">_filterLogs</span><span class="o">();</span>
213 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">log</span><span class="o">(</span><span class="s2">&quot;LogReader initialized&quot;</span><span class="o">,</span> <span class="kc">null</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">toString</span><span class="o">());</span>
214 <span class="o">};</span>
216 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
217 <span class="c">//</span>
218 <span class="c">// Public member variables</span>
219 <span class="c">//</span>
220 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
221 <span class="c"></span>
222 <span class="c">/**</span>
223 <span class="c"> * Whether or not LogReader is enabled to output log messages.</span>
224 <span class="c"> *</span>
225 <span class="c"> * @property logReaderEnabled</span>
226 <span class="c"> * @type Boolean</span>
227 <span class="c"> * @default true</span>
228 <span class="c"> */</span>
229 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">logReaderEnabled</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
231 <span class="c">/**</span>
232 <span class="c"> * Public member to access CSS width of the LogReader container.</span>
233 <span class="c"> *</span>
234 <span class="c"> * @property width</span>
235 <span class="c"> * @type String</span>
236 <span class="c"> */</span>
237 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">width</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
239 <span class="c">/**</span>
240 <span class="c"> * Public member to access CSS height of the LogReader container.</span>
241 <span class="c"> *</span>
242 <span class="c"> * @property height</span>
243 <span class="c"> * @type String</span>
244 <span class="c"> */</span>
245 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">height</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
247 <span class="c">/**</span>
248 <span class="c"> * Public member to access CSS top position of the LogReader container.</span>
249 <span class="c"> *</span>
250 <span class="c"> * @property top</span>
251 <span class="c"> * @type String</span>
252 <span class="c"> */</span>
253 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">top</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
255 <span class="c">/**</span>
256 <span class="c"> * Public member to access CSS left position of the LogReader container.</span>
257 <span class="c"> *</span>
258 <span class="c"> * @property left</span>
259 <span class="c"> * @type String</span>
260 <span class="c"> */</span>
261 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">left</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
263 <span class="c">/**</span>
264 <span class="c"> * Public member to access CSS right position of the LogReader container.</span>
265 <span class="c"> *</span>
266 <span class="c"> * @property right</span>
267 <span class="c"> * @type String</span>
268 <span class="c"> */</span>
269 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">right</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
271 <span class="c">/**</span>
272 <span class="c"> * Public member to access CSS bottom position of the LogReader container.</span>
273 <span class="c"> *</span>
274 <span class="c"> * @property bottom</span>
275 <span class="c"> * @type String</span>
276 <span class="c"> */</span>
277 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">bottom</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
279 <span class="c">/**</span>
280 <span class="c"> * Public member to access CSS font size of the LogReader container.</span>
281 <span class="c"> *</span>
282 <span class="c"> * @property fontSize</span>
283 <span class="c"> * @type String</span>
284 <span class="c"> */</span>
285 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">fontSize</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
287 <span class="c">/**</span>
288 <span class="c"> * Whether or not the footer UI is enabled for the LogReader.</span>
289 <span class="c"> *</span>
290 <span class="c"> * @property footerEnabled</span>
291 <span class="c"> * @type Boolean</span>
292 <span class="c"> * @default true</span>
293 <span class="c"> */</span>
294 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">footerEnabled</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
296 <span class="c">/**</span>
297 <span class="c"> * Whether or not output is verbose (more readable). Setting to true will make</span>
298 <span class="c"> * output more compact (less readable).</span>
299 <span class="c"> *</span>
300 <span class="c"> * @property verboseOutput</span>
301 <span class="c"> * @type Boolean</span>
302 <span class="c"> * @default true</span>
303 <span class="c"> */</span>
304 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">verboseOutput</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
306 <span class="c">/**</span>
307 <span class="c"> * Whether or not newest message is printed on top.</span>
308 <span class="c"> *</span>
309 <span class="c"> * @property newestOnTop</span>
310 <span class="c"> * @type Boolean</span>
311 <span class="c"> */</span>
312 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">newestOnTop</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
314 <span class="c">/**</span>
315 <span class="c"> * Maximum number of messages a LogReader console will display.</span>
316 <span class="c"> *</span>
317 <span class="c"> * @property thresholdMax</span>
318 <span class="c"> * @type Number</span>
319 <span class="c"> * @default 500</span>
320 <span class="c"> */</span>
321 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">thresholdMax</span> <span class="o">=</span> <span class="m">500</span><span class="o">;</span>
323 <span class="c">/**</span>
324 <span class="c"> * When a LogReader console reaches its thresholdMax, it will clear out messages</span>
325 <span class="c"> * and print out the latest thresholdMin number of messages.</span>
326 <span class="c"> *</span>
327 <span class="c"> * @property thresholdMin</span>
328 <span class="c"> * @type Number</span>
329 <span class="c"> * @default 100</span>
330 <span class="c"> */</span>
331 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">thresholdMin</span> <span class="o">=</span> <span class="m">100</span><span class="o">;</span>
333 <span class="c">/**</span>
334 <span class="c"> * True when LogReader is in a collapsed state, false otherwise.</span>
335 <span class="c"> *</span>
336 <span class="c"> * @property isCollapsed</span>
337 <span class="c"> * @type Boolean</span>
338 <span class="c"> * @default false</span>
339 <span class="c"> */</span>
340 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">isCollapsed</span> <span class="o">=</span> <span class="kc">false</span><span class="o">;</span>
342 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
343 <span class="c">//</span>
344 <span class="c">// Public methods</span>
345 <span class="c">//</span>
346 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
347 <span class="c"></span>
348 <span class="c">/**</span>
349 <span class="c"> * Public accessor to the unique name of the LogReader instance.</span>
350 <span class="c"> *</span>
351 <span class="c"> * @method toString</span>
352 <span class="c"> * @return {String} Unique name of the LogReader instance.</span>
353 <span class="c"> */</span>
354 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">toString</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
355 <span class="k">return</span> <span class="s2">&quot;LogReader instance&quot;</span> <span class="o">+</span> <span class="k">this</span><span class="o">.</span><span class="nx">_sName</span><span class="o">;</span>
356 <span class="o">};</span>
357 <span class="c">/**</span>
358 <span class="c"> * Pauses output of log messages. While paused, log messages are not lost, but</span>
359 <span class="c"> * get saved to a buffer and then output upon resume of LogReader.</span>
360 <span class="c"> *</span>
361 <span class="c"> * @method pause</span>
362 <span class="c"> */</span>
363 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">pause</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
364 <span class="k">this</span><span class="o">.</span><span class="nx">_timeout</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
365 <span class="k">this</span><span class="o">.</span><span class="nx">logReaderEnabled</span> <span class="o">=</span> <span class="kc">false</span><span class="o">;</span>
366 <span class="o">};</span>
368 <span class="c">/**</span>
369 <span class="c"> * Resumes output of log messages, including outputting any log messages that</span>
370 <span class="c"> * have been saved to buffer while paused.</span>
371 <span class="c"> *</span>
372 <span class="c"> * @method resume</span>
373 <span class="c"> */</span>
374 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">resume</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
375 <span class="k">this</span><span class="o">.</span><span class="nx">logReaderEnabled</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
376 <span class="k">this</span><span class="o">.</span><span class="nx">_printBuffer</span><span class="o">();</span>
377 <span class="o">};</span>
379 <span class="c">/**</span>
380 <span class="c"> * Hides UI of LogReader. Logging functionality is not disrupted.</span>
381 <span class="c"> *</span>
382 <span class="c"> * @method hide</span>
383 <span class="c"> */</span>
384 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">hide</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
385 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s2">&quot;none&quot;</span><span class="o">;</span>
386 <span class="o">};</span>
388 <span class="c">/**</span>
389 <span class="c"> * Shows UI of LogReader. Logging functionality is not disrupted.</span>
390 <span class="c"> *</span>
391 <span class="c"> * @method show</span>
392 <span class="c"> */</span>
393 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">show</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
394 <span class="k">this</span><span class="o">.</span><span class="nx">_elContainer</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s2">&quot;block&quot;</span><span class="o">;</span>
395 <span class="o">};</span>
397 <span class="c">/**</span>
398 <span class="c"> * Collapses UI of LogReader. Logging functionality is not disrupted.</span>
399 <span class="c"> *</span>
400 <span class="c"> * @method collapse</span>
401 <span class="c"> */</span>
402 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">collapse</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
403 <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s2">&quot;none&quot;</span><span class="o">;</span>
404 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">)</span> <span class="o">{</span>
405 <span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s2">&quot;none&quot;</span><span class="o">;</span>
406 <span class="o">}</span>
407 <span class="k">this</span><span class="o">.</span><span class="nx">_btnCollapse</span><span class="o">.</span><span class="nx">value</span> <span class="o">=</span> <span class="s2">&quot;Expand&quot;</span><span class="o">;</span>
408 <span class="k">this</span><span class="o">.</span><span class="nx">isCollapsed</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
409 <span class="o">};</span>
411 <span class="c">/**</span>
412 <span class="c"> * Expands UI of LogReader. Logging functionality is not disrupted.</span>
413 <span class="c"> *</span>
414 <span class="c"> * @method expand</span>
415 <span class="c"> */</span>
416 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">expand</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
417 <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s2">&quot;block&quot;</span><span class="o">;</span>
418 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">)</span> <span class="o">{</span>
419 <span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s2">&quot;block&quot;</span><span class="o">;</span>
420 <span class="o">}</span>
421 <span class="k">this</span><span class="o">.</span><span class="nx">_btnCollapse</span><span class="o">.</span><span class="nx">value</span> <span class="o">=</span> <span class="s2">&quot;Collapse&quot;</span><span class="o">;</span>
422 <span class="k">this</span><span class="o">.</span><span class="nx">isCollapsed</span> <span class="o">=</span> <span class="kc">false</span><span class="o">;</span>
423 <span class="o">};</span>
425 <span class="c">/**</span>
426 <span class="c"> * Updates title to given string.</span>
427 <span class="c"> *</span>
428 <span class="c"> * @method setTitle</span>
429 <span class="c"> * @param sTitle {String} New title.</span>
430 <span class="c"> */</span>
431 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">setTitle</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">sTitle</span><span class="o">)</span> <span class="o">{</span>
432 <span class="k">this</span><span class="o">.</span><span class="nx">_title</span><span class="o">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">html2Text</span><span class="o">(</span><span class="nx">sTitle</span><span class="o">);</span>
433 <span class="o">};</span>
435 <span class="c">/**</span>
436 <span class="c"> * Gets timestamp of the last log.</span>
437 <span class="c"> *</span>
438 <span class="c"> * @method getLastTime</span>
439 <span class="c"> * @return {Date} Timestamp of the last log.</span>
440 <span class="c"> */</span>
441 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">getLastTime</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
442 <span class="k">return</span> <span class="k">this</span><span class="o">.</span><span class="nx">_lastTime</span><span class="o">;</span>
443 <span class="o">};</span>
445 <span class="c">/**</span>
446 <span class="c"> * Formats message string to HTML for output to console.</span>
447 <span class="c"> *</span>
448 <span class="c"> * @method formatMsg</span>
449 <span class="c"> * @param oLogMsg {Object} Log message object.</span>
450 <span class="c"> * @return {String} HTML-formatted message for output to console.</span>
451 <span class="c"> */</span>
452 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">formatMsg</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">oLogMsg</span><span class="o">)</span> <span class="o">{</span>
453 <span class="k">var</span> <span class="nx">category</span> <span class="o">=</span> <span class="nx">oLogMsg</span><span class="o">.</span><span class="nx">category</span><span class="o">;</span>
455 <span class="c">// Label for color-coded display</span>
456 <span class="c"></span> <span class="k">var</span> <span class="k">label</span> <span class="o">=</span> <span class="nx">category</span><span class="o">.</span><span class="nx">substring</span><span class="o">(</span><span class="m">0</span><span class="o">,</span><span class="m">4</span><span class="o">).</span><span class="nx">toUpperCase</span><span class="o">();</span>
458 <span class="c">// Calculate the elapsed time to be from the last item that passed through the filter,</span>
459 <span class="c"></span> <span class="c">// not the absolute previous item in the stack</span>
460 <span class="c"></span>
461 <span class="k">var</span> <span class="nx">time</span> <span class="o">=</span> <span class="nx">oLogMsg</span><span class="o">.</span><span class="nx">time</span><span class="o">;</span>
462 <span class="k">if</span> <span class="o">(</span><span class="nx">time</span><span class="o">.</span><span class="nx">toLocaleTimeString</span><span class="o">)</span> <span class="o">{</span>
463 <span class="k">var</span> <span class="nx">localTime</span> <span class="o">=</span> <span class="nx">time</span><span class="o">.</span><span class="nx">toLocaleTimeString</span><span class="o">();</span>
464 <span class="o">}</span>
465 <span class="k">else</span> <span class="o">{</span>
466 <span class="nx">localTime</span> <span class="o">=</span> <span class="nx">time</span><span class="o">.</span><span class="nx">toString</span><span class="o">();</span>
467 <span class="o">}</span>
469 <span class="k">var</span> <span class="nx">msecs</span> <span class="o">=</span> <span class="nx">time</span><span class="o">.</span><span class="nx">getTime</span><span class="o">();</span>
470 <span class="k">var</span> <span class="nx">startTime</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">getStartTime</span><span class="o">();</span>
471 <span class="k">var</span> <span class="nx">totalTime</span> <span class="o">=</span> <span class="nx">msecs</span> <span class="o">-</span> <span class="nx">startTime</span><span class="o">;</span>
472 <span class="k">var</span> <span class="nx">elapsedTime</span> <span class="o">=</span> <span class="nx">msecs</span> <span class="o">-</span> <span class="k">this</span><span class="o">.</span><span class="nx">getLastTime</span><span class="o">();</span>
474 <span class="k">var</span> <span class="nx">source</span> <span class="o">=</span> <span class="nx">oLogMsg</span><span class="o">.</span><span class="nx">source</span><span class="o">;</span>
475 <span class="k">var</span> <span class="nx">sourceDetail</span> <span class="o">=</span> <span class="nx">oLogMsg</span><span class="o">.</span><span class="nx">sourceDetail</span><span class="o">;</span>
476 <span class="k">var</span> <span class="nx">sourceAndDetail</span> <span class="o">=</span> <span class="o">(</span><span class="nx">sourceDetail</span><span class="o">)</span> <span class="o">?</span>
477 <span class="nx">source</span> <span class="o">+</span> <span class="s2">&quot; &quot;</span> <span class="o">+</span> <span class="nx">sourceDetail</span> <span class="o">:</span> <span class="nx">source</span><span class="o">;</span>
479 <span class="c">// Escape HTML entities in the log message itself for output to console</span>
480 <span class="c"></span> <span class="k">var</span> <span class="nx">msg</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">html2Text</span><span class="o">(</span><span class="nx">oLogMsg</span><span class="o">.</span><span class="nx">msg</span><span class="o">);</span>
482 <span class="c">// Verbose output includes extra line breaks</span>
483 <span class="c"></span> <span class="k">var</span> <span class="nx">output</span> <span class="o">=</span> <span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">verboseOutput</span><span class="o">)</span> <span class="o">?</span>
484 <span class="o">[</span><span class="s2">&quot;&lt;p&gt;&lt;span class=&#39;&quot;</span><span class="o">,</span> <span class="nx">category</span><span class="o">,</span> <span class="s2">&quot;&#39;&gt;&quot;</span><span class="o">,</span> <span class="k">label</span><span class="o">,</span> <span class="s2">&quot;&lt;/span&gt; &quot;</span><span class="o">,</span>
485 <span class="nx">totalTime</span><span class="o">,</span> <span class="s2">&quot;ms (+&quot;</span><span class="o">,</span> <span class="nx">elapsedTime</span><span class="o">,</span> <span class="s2">&quot;) &quot;</span><span class="o">,</span>
486 <span class="nx">localTime</span><span class="o">,</span> <span class="s2">&quot;: &quot;</span><span class="o">,</span>
487 <span class="s2">&quot;&lt;/p&gt;&lt;p&gt;&quot;</span><span class="o">,</span>
488 <span class="nx">sourceAndDetail</span><span class="o">,</span>
489 <span class="s2">&quot;: &lt;/p&gt;&lt;p&gt;&quot;</span><span class="o">,</span>
490 <span class="nx">msg</span><span class="o">,</span>
491 <span class="s2">&quot;&lt;/p&gt;&quot;</span><span class="o">]</span> <span class="o">:</span>
493 <span class="o">[</span><span class="s2">&quot;&lt;p&gt;&lt;span class=&#39;&quot;</span><span class="o">,</span> <span class="nx">category</span><span class="o">,</span> <span class="s2">&quot;&#39;&gt;&quot;</span><span class="o">,</span> <span class="k">label</span><span class="o">,</span> <span class="s2">&quot;&lt;/span&gt; &quot;</span><span class="o">,</span>
494 <span class="nx">totalTime</span><span class="o">,</span> <span class="s2">&quot;ms (+&quot;</span><span class="o">,</span> <span class="nx">elapsedTime</span><span class="o">,</span> <span class="s2">&quot;) &quot;</span><span class="o">,</span>
495 <span class="nx">localTime</span><span class="o">,</span> <span class="s2">&quot;: &quot;</span><span class="o">,</span>
496 <span class="nx">sourceAndDetail</span><span class="o">,</span> <span class="s2">&quot;: &quot;</span><span class="o">,</span>
497 <span class="nx">msg</span><span class="o">,</span><span class="s2">&quot;&lt;/p&gt;&quot;</span><span class="o">];</span>
499 <span class="k">return</span> <span class="nx">output</span><span class="o">.</span><span class="nx">join</span><span class="o">(</span><span class="s2">&quot;&quot;</span><span class="o">);</span>
500 <span class="o">};</span>
502 <span class="c">/**</span>
503 <span class="c"> * Converts input chars &quot;&lt;&quot;, &quot;&gt;&quot;, and &quot;&amp;&quot; to HTML entities.</span>
504 <span class="c"> *</span>
505 <span class="c"> * @method html2Text</span>
506 <span class="c"> * @param sHtml {String} String to convert.</span>
507 <span class="c"> * @private</span>
508 <span class="c"> */</span>
509 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">html2Text</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">sHtml</span><span class="o">)</span> <span class="o">{</span>
510 <span class="k">if</span><span class="o">(</span><span class="nx">sHtml</span><span class="o">)</span> <span class="o">{</span>
511 <span class="nx">sHtml</span> <span class="o">+=</span> <span class="s2">&quot;&quot;</span><span class="o">;</span>
512 <span class="k">return</span> <span class="nx">sHtml</span><span class="o">.</span><span class="nx">replace</span><span class="o">(</span><span class="sr">/&amp;/g</span><span class="o">,</span> <span class="s2">&quot;&amp;#38;&quot;</span><span class="o">).</span><span class="nx">replace</span><span class="o">(</span><span class="sr">/&lt;/g</span><span class="o">,</span> <span class="s2">&quot;&amp;#60;&quot;</span><span class="o">).</span><span class="nx">replace</span><span class="o">(</span><span class="sr">/&gt;/g</span><span class="o">,</span> <span class="s2">&quot;&amp;#62;&quot;</span><span class="o">);</span>
513 <span class="o">}</span>
514 <span class="k">return</span> <span class="s2">&quot;&quot;</span><span class="o">;</span>
515 <span class="o">};</span>
517 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
518 <span class="c">//</span>
519 <span class="c">// Private member variables</span>
520 <span class="c">//</span>
521 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
522 <span class="c"></span>
523 <span class="c">/**</span>
524 <span class="c"> * Internal class member to index multiple LogReader instances.</span>
525 <span class="c"> *</span>
526 <span class="c"> * @property _memberName</span>
527 <span class="c"> * @static</span>
528 <span class="c"> * @type Number</span>
529 <span class="c"> * @default 0</span>
530 <span class="c"> * @private</span>
531 <span class="c"> */</span>
532 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">_index</span> <span class="o">=</span> <span class="m">0</span><span class="o">;</span>
534 <span class="c">/**</span>
535 <span class="c"> * Name of LogReader instance.</span>
536 <span class="c"> *</span>
537 <span class="c"> * @property _sName</span>
538 <span class="c"> * @type String</span>
539 <span class="c"> * @private</span>
540 <span class="c"> */</span>
541 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_sName</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
543 <span class="c">/**</span>
544 <span class="c"> * A class member shared by all LogReaders if a container needs to be</span>
545 <span class="c"> * created during instantiation. Will be null if a container element never needs to</span>
546 <span class="c"> * be created on the fly, such as when the implementer passes in their own element.</span>
547 <span class="c"> *</span>
548 <span class="c"> * @property _elDefaultContainer</span>
549 <span class="c"> * @type HTMLElement</span>
550 <span class="c"> * @private</span>
551 <span class="c"> */</span>
552 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">_elDefaultContainer</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
554 <span class="c">/**</span>
555 <span class="c"> * Buffer of log message objects for batch output.</span>
556 <span class="c"> *</span>
557 <span class="c"> * @property _buffer</span>
558 <span class="c"> * @type Object[]</span>
559 <span class="c"> * @private</span>
560 <span class="c"> */</span>
561 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_buffer</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
563 <span class="c">/**</span>
564 <span class="c"> * Number of log messages output to console.</span>
565 <span class="c"> *</span>
566 <span class="c"> * @property _consoleMsgCount</span>
567 <span class="c"> * @type Number</span>
568 <span class="c"> * @default 0</span>
569 <span class="c"> * @private</span>
570 <span class="c"> */</span>
571 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_consoleMsgCount</span> <span class="o">=</span> <span class="m">0</span><span class="o">;</span>
573 <span class="c">/**</span>
574 <span class="c"> * Date of last output log message.</span>
575 <span class="c"> *</span>
576 <span class="c"> * @property _lastTime</span>
577 <span class="c"> * @type Date</span>
578 <span class="c"> * @private</span>
579 <span class="c"> */</span>
580 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_lastTime</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
582 <span class="c">/**</span>
583 <span class="c"> * Batched output timeout ID.</span>
584 <span class="c"> *</span>
585 <span class="c"> * @property _timeout</span>
586 <span class="c"> * @type Number</span>
587 <span class="c"> * @private</span>
588 <span class="c"> */</span>
589 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_timeout</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
591 <span class="c">/**</span>
592 <span class="c"> * Array of filters for log message categories.</span>
593 <span class="c"> *</span>
594 <span class="c"> * @property _categoryFilters</span>
595 <span class="c"> * @type String[]</span>
596 <span class="c"> * @private</span>
597 <span class="c"> */</span>
598 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_categoryFilters</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
600 <span class="c">/**</span>
601 <span class="c"> * Array of filters for log message sources.</span>
602 <span class="c"> *</span>
603 <span class="c"> * @property _sourceFilters</span>
604 <span class="c"> * @type String[]</span>
605 <span class="c"> * @private</span>
606 <span class="c"> */</span>
607 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_sourceFilters</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
609 <span class="c">/**</span>
610 <span class="c"> * LogReader container element.</span>
611 <span class="c"> *</span>
612 <span class="c"> * @property _elContainer</span>
613 <span class="c"> * @type HTMLElement</span>
614 <span class="c"> * @private</span>
615 <span class="c"> */</span>
616 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_elContainer</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
618 <span class="c">/**</span>
619 <span class="c"> * LogReader header element.</span>
620 <span class="c"> *</span>
621 <span class="c"> * @property _elHd</span>
622 <span class="c"> * @type HTMLElement</span>
623 <span class="c"> * @private</span>
624 <span class="c"> */</span>
625 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_elHd</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
627 <span class="c">/**</span>
628 <span class="c"> * LogReader collapse element.</span>
629 <span class="c"> *</span>
630 <span class="c"> * @property _elCollapse</span>
631 <span class="c"> * @type HTMLElement</span>
632 <span class="c"> * @private</span>
633 <span class="c"> */</span>
634 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_elCollapse</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
636 <span class="c">/**</span>
637 <span class="c"> * LogReader collapse button element.</span>
638 <span class="c"> *</span>
639 <span class="c"> * @property _btnCollapse</span>
640 <span class="c"> * @type HTMLElement</span>
641 <span class="c"> * @private</span>
642 <span class="c"> */</span>
643 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_btnCollapse</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
645 <span class="c">/**</span>
646 <span class="c"> * LogReader title header element.</span>
647 <span class="c"> *</span>
648 <span class="c"> * @property _title</span>
649 <span class="c"> * @type HTMLElement</span>
650 <span class="c"> * @private</span>
651 <span class="c"> */</span>
652 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_title</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
654 <span class="c">/**</span>
655 <span class="c"> * LogReader console element.</span>
656 <span class="c"> *</span>
657 <span class="c"> * @property _elConsole</span>
658 <span class="c"> * @type HTMLElement</span>
659 <span class="c"> * @private</span>
660 <span class="c"> */</span>
661 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_elConsole</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
663 <span class="c">/**</span>
664 <span class="c"> * LogReader footer element.</span>
665 <span class="c"> *</span>
666 <span class="c"> * @property _elFt</span>
667 <span class="c"> * @type HTMLElement</span>
668 <span class="c"> * @private</span>
669 <span class="c"> */</span>
670 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_elFt</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
672 <span class="c">/**</span>
673 <span class="c"> * LogReader buttons container element.</span>
674 <span class="c"> *</span>
675 <span class="c"> * @property _elBtns</span>
676 <span class="c"> * @type HTMLElement</span>
677 <span class="c"> * @private</span>
678 <span class="c"> */</span>
679 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_elBtns</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
681 <span class="c">/**</span>
682 <span class="c"> * Container element for LogReader category filter checkboxes.</span>
683 <span class="c"> *</span>
684 <span class="c"> * @property _elCategoryFilters</span>
685 <span class="c"> * @type HTMLElement</span>
686 <span class="c"> * @private</span>
687 <span class="c"> */</span>
688 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_elCategoryFilters</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
690 <span class="c">/**</span>
691 <span class="c"> * Container element for LogReader source filter checkboxes.</span>
692 <span class="c"> *</span>
693 <span class="c"> * @property _elSourceFilters</span>
694 <span class="c"> * @type HTMLElement</span>
695 <span class="c"> * @private</span>
696 <span class="c"> */</span>
697 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_elSourceFilters</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
699 <span class="c">/**</span>
700 <span class="c"> * LogReader pause button element.</span>
701 <span class="c"> *</span>
702 <span class="c"> * @property _btnPause</span>
703 <span class="c"> * @type HTMLElement</span>
704 <span class="c"> * @private</span>
705 <span class="c"> */</span>
706 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_btnPause</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
708 <span class="c">/**</span>
709 <span class="c"> * Clear button element.</span>
710 <span class="c"> *</span>
711 <span class="c"> * @property _btnClear</span>
712 <span class="c"> * @type HTMLElement</span>
713 <span class="c"> * @private</span>
714 <span class="c"> */</span>
715 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_btnClear</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
717 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
718 <span class="c">//</span>
719 <span class="c">// Private methods</span>
720 <span class="c">//</span>
721 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
722 <span class="c"></span>
723 <span class="c">/**</span>
724 <span class="c"> * Creates the UI for a category filter in the LogReader footer element.</span>
725 <span class="c"> *</span>
726 <span class="c"> * @method _createCategoryCheckbox</span>
727 <span class="c"> * @param sCategory {String} Category name.</span>
728 <span class="c"> * @private</span>
729 <span class="c"> */</span>
730 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_createCategoryCheckbox</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">sCategory</span><span class="o">)</span> <span class="o">{</span>
731 <span class="k">var</span> <span class="nx">oSelf</span> <span class="o">=</span> <span class="k">this</span><span class="o">;</span>
733 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">)</span> <span class="o">{</span>
734 <span class="k">var</span> <span class="nx">elParent</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elCategoryFilters</span><span class="o">;</span>
735 <span class="k">var</span> <span class="nx">filters</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_categoryFilters</span><span class="o">;</span>
737 <span class="k">var</span> <span class="nx">elFilter</span> <span class="o">=</span> <span class="nx">elParent</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;span&quot;</span><span class="o">));</span>
738 <span class="nx">elFilter</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-filtergrp&quot;</span><span class="o">;</span>
739 <span class="c">// Append el at the end so IE 5.5 can set &quot;type&quot; attribute</span>
740 <span class="c"></span> <span class="c">// and THEN set checked property</span>
741 <span class="c"></span> <span class="k">var</span> <span class="nx">chkCategory</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;input&quot;</span><span class="o">);</span>
742 <span class="nx">chkCategory</span><span class="o">.</span><span class="nx">id</span> <span class="o">=</span> <span class="s2">&quot;yui-log-filter-&quot;</span> <span class="o">+</span> <span class="nx">sCategory</span> <span class="o">+</span> <span class="k">this</span><span class="o">.</span><span class="nx">_sName</span><span class="o">;</span>
743 <span class="nx">chkCategory</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-filter-&quot;</span> <span class="o">+</span> <span class="nx">sCategory</span><span class="o">;</span>
744 <span class="nx">chkCategory</span><span class="o">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s2">&quot;checkbox&quot;</span><span class="o">;</span>
745 <span class="nx">chkCategory</span><span class="o">.</span><span class="nx">category</span> <span class="o">=</span> <span class="nx">sCategory</span><span class="o">;</span>
746 <span class="nx">chkCategory</span> <span class="o">=</span> <span class="nx">elFilter</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nx">chkCategory</span><span class="o">);</span>
747 <span class="nx">chkCategory</span><span class="o">.</span><span class="nx">checked</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
749 <span class="c">// Add this checked filter to the internal array of filters</span>
750 <span class="c"></span> <span class="nx">filters</span><span class="o">.</span><span class="nx">push</span><span class="o">(</span><span class="nx">sCategory</span><span class="o">);</span>
751 <span class="c">// Subscribe to the click event</span>
752 <span class="c"></span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Event</span><span class="o">.</span><span class="nx">addListener</span><span class="o">(</span><span class="nx">chkCategory</span><span class="o">,</span><span class="s1">&#39;click&#39;</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">_onCheckCategory</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">);</span>
754 <span class="c">// Create and class the text label</span>
755 <span class="c"></span> <span class="k">var</span> <span class="nx">lblCategory</span> <span class="o">=</span> <span class="nx">elFilter</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;label&quot;</span><span class="o">));</span>
756 <span class="nx">lblCategory</span><span class="o">.</span><span class="nx">htmlFor</span> <span class="o">=</span> <span class="nx">chkCategory</span><span class="o">.</span><span class="nx">id</span><span class="o">;</span>
757 <span class="nx">lblCategory</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="nx">sCategory</span><span class="o">;</span>
758 <span class="nx">lblCategory</span><span class="o">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">sCategory</span><span class="o">;</span>
759 <span class="o">}</span>
760 <span class="o">};</span>
762 <span class="c">/**</span>
763 <span class="c"> * Creates a checkbox in the LogReader footer element to filter by source.</span>
764 <span class="c"> *</span>
765 <span class="c"> * @method _createSourceCheckbox</span>
766 <span class="c"> * @param sSource {String} Source name.</span>
767 <span class="c"> * @private</span>
768 <span class="c"> */</span>
769 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_createSourceCheckbox</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">sSource</span><span class="o">)</span> <span class="o">{</span>
770 <span class="k">var</span> <span class="nx">oSelf</span> <span class="o">=</span> <span class="k">this</span><span class="o">;</span>
772 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">)</span> <span class="o">{</span>
773 <span class="k">var</span> <span class="nx">elParent</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elSourceFilters</span><span class="o">;</span>
774 <span class="k">var</span> <span class="nx">filters</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_sourceFilters</span><span class="o">;</span>
776 <span class="k">var</span> <span class="nx">elFilter</span> <span class="o">=</span> <span class="nx">elParent</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;span&quot;</span><span class="o">));</span>
777 <span class="nx">elFilter</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-filtergrp&quot;</span><span class="o">;</span>
779 <span class="c">// Append el at the end so IE 5.5 can set &quot;type&quot; attribute</span>
780 <span class="c"></span> <span class="c">// and THEN set checked property</span>
781 <span class="c"></span> <span class="k">var</span> <span class="nx">chkSource</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;input&quot;</span><span class="o">);</span>
782 <span class="nx">chkSource</span><span class="o">.</span><span class="nx">id</span> <span class="o">=</span> <span class="s2">&quot;yui-log-filter&quot;</span> <span class="o">+</span> <span class="nx">sSource</span> <span class="o">+</span> <span class="k">this</span><span class="o">.</span><span class="nx">_sName</span><span class="o">;</span>
783 <span class="nx">chkSource</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s2">&quot;yui-log-filter&quot;</span> <span class="o">+</span> <span class="nx">sSource</span><span class="o">;</span>
784 <span class="nx">chkSource</span><span class="o">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s2">&quot;checkbox&quot;</span><span class="o">;</span>
785 <span class="nx">chkSource</span><span class="o">.</span><span class="nx">source</span> <span class="o">=</span> <span class="nx">sSource</span><span class="o">;</span>
786 <span class="nx">chkSource</span> <span class="o">=</span> <span class="nx">elFilter</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nx">chkSource</span><span class="o">);</span>
787 <span class="nx">chkSource</span><span class="o">.</span><span class="nx">checked</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
789 <span class="c">// Add this checked filter to the internal array of filters</span>
790 <span class="c"></span> <span class="nx">filters</span><span class="o">.</span><span class="nx">push</span><span class="o">(</span><span class="nx">sSource</span><span class="o">);</span>
791 <span class="c">// Subscribe to the click event</span>
792 <span class="c"></span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Event</span><span class="o">.</span><span class="nx">addListener</span><span class="o">(</span><span class="nx">chkSource</span><span class="o">,</span><span class="s1">&#39;click&#39;</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">_onCheckSource</span><span class="o">,</span><span class="nx">oSelf</span><span class="o">);</span>
794 <span class="c">// Create and class the text label</span>
795 <span class="c"></span> <span class="k">var</span> <span class="nx">lblSource</span> <span class="o">=</span> <span class="nx">elFilter</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;label&quot;</span><span class="o">));</span>
796 <span class="nx">lblSource</span><span class="o">.</span><span class="nx">htmlFor</span> <span class="o">=</span> <span class="nx">chkSource</span><span class="o">.</span><span class="nx">id</span><span class="o">;</span>
797 <span class="nx">lblSource</span><span class="o">.</span><span class="nx">className</span> <span class="o">=</span> <span class="nx">sSource</span><span class="o">;</span>
798 <span class="nx">lblSource</span><span class="o">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">sSource</span><span class="o">;</span>
799 <span class="o">}</span>
800 <span class="o">};</span>
802 <span class="c">/**</span>
803 <span class="c"> * Reprints all log messages in the stack through filters.</span>
804 <span class="c"> *</span>
805 <span class="c"> * @method _filterLogs</span>
806 <span class="c"> * @private</span>
807 <span class="c"> */</span>
808 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_filterLogs</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
809 <span class="c">// Reprint stack with new filters</span>
810 <span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span> <span class="o">!==</span> <span class="kc">null</span><span class="o">)</span> <span class="o">{</span>
811 <span class="k">this</span><span class="o">.</span><span class="nx">_clearConsole</span><span class="o">();</span>
812 <span class="k">this</span><span class="o">.</span><span class="nx">_printToConsole</span><span class="o">(</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">getStack</span><span class="o">());</span>
813 <span class="o">}</span>
814 <span class="o">};</span>
816 <span class="c">/**</span>
817 <span class="c"> * Clears all outputted log messages from the console and resets the time of the</span>
818 <span class="c"> * last output log message.</span>
819 <span class="c"> *</span>
820 <span class="c"> * @method _clearConsole</span>
821 <span class="c"> * @private</span>
822 <span class="c"> */</span>
823 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_clearConsole</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
824 <span class="c">// Clear the buffer of any pending messages</span>
825 <span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_timeout</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
826 <span class="k">this</span><span class="o">.</span><span class="nx">_buffer</span> <span class="o">=</span> <span class="o">[];</span>
827 <span class="k">this</span><span class="o">.</span><span class="nx">_consoleMsgCount</span> <span class="o">=</span> <span class="m">0</span><span class="o">;</span>
829 <span class="c">// Reset the rolling timer</span>
830 <span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_lastTime</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Logger</span><span class="o">.</span><span class="nx">getStartTime</span><span class="o">();</span>
832 <span class="k">var</span> <span class="nx">elConsole</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">;</span>
833 <span class="k">while</span><span class="o">(</span><span class="nx">elConsole</span><span class="o">.</span><span class="nx">hasChildNodes</span><span class="o">())</span> <span class="o">{</span>
834 <span class="nx">elConsole</span><span class="o">.</span><span class="nx">removeChild</span><span class="o">(</span><span class="nx">elConsole</span><span class="o">.</span><span class="nx">firstChild</span><span class="o">);</span>
835 <span class="o">}</span>
836 <span class="o">};</span>
838 <span class="c">/**</span>
839 <span class="c"> * Sends buffer of log messages to output and clears buffer.</span>
840 <span class="c"> *</span>
841 <span class="c"> * @method _printBuffer</span>
842 <span class="c"> * @private</span>
843 <span class="c"> */</span>
844 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_printBuffer</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
845 <span class="k">this</span><span class="o">.</span><span class="nx">_timeout</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
847 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span> <span class="o">!==</span> <span class="kc">null</span><span class="o">)</span> <span class="o">{</span>
848 <span class="k">var</span> <span class="nx">thresholdMax</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">thresholdMax</span><span class="o">;</span>
849 <span class="nx">thresholdMax</span> <span class="o">=</span> <span class="o">(</span><span class="nx">thresholdMax</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="nb">isNaN</span><span class="o">(</span><span class="nx">thresholdMax</span><span class="o">))</span> <span class="o">?</span> <span class="nx">thresholdMax</span> <span class="o">:</span> <span class="m">500</span><span class="o">;</span>
850 <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_consoleMsgCount</span> <span class="o">&lt;</span> <span class="nx">thresholdMax</span><span class="o">)</span> <span class="o">{</span>
851 <span class="k">var</span> <span class="nx">entries</span> <span class="o">=</span> <span class="o">[];</span>
852 <span class="k">for</span> <span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="k">this</span><span class="o">.</span><span class="nx">_buffer</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
853 <span class="nx">entries</span><span class="o">[</span><span class="nx">i</span><span class="o">]</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_buffer</span><span class="o">[</span><span class="nx">i</span><span class="o">];</span>
854 <span class="o">}</span>
855 <span class="k">this</span><span class="o">.</span><span class="nx">_buffer</span> <span class="o">=</span> <span class="o">[];</span>
856 <span class="k">this</span><span class="o">.</span><span class="nx">_printToConsole</span><span class="o">(</span><span class="nx">entries</span><span class="o">);</span>
857 <span class="o">}</span>
858 <span class="k">else</span> <span class="o">{</span>
859 <span class="k">this</span><span class="o">.</span><span class="nx">_filterLogs</span><span class="o">();</span>
860 <span class="o">}</span>
862 <span class="k">if</span><span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">newestOnTop</span><span class="o">)</span> <span class="o">{</span>
863 <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">.</span><span class="nx">scrollTop</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">.</span><span class="nx">scrollHeight</span><span class="o">;</span>
864 <span class="o">}</span>
865 <span class="o">}</span>
866 <span class="o">};</span>
868 <span class="c">/**</span>
869 <span class="c"> * Cycles through an array of log messages, and outputs each one to the console</span>
870 <span class="c"> * if its category has not been filtered out.</span>
871 <span class="c"> *</span>
872 <span class="c"> * @method _printToConsole</span>
873 <span class="c"> * @param aEntries {Object[]} Array of LogMsg objects to output to console.</span>
874 <span class="c"> * @private</span>
875 <span class="c"> */</span>
876 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_printToConsole</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">aEntries</span><span class="o">)</span> <span class="o">{</span>
877 <span class="c">// Manage the number of messages displayed in the console</span>
878 <span class="c"></span> <span class="k">var</span> <span class="nx">entriesLen</span> <span class="o">=</span> <span class="nx">aEntries</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
879 <span class="k">var</span> <span class="nx">thresholdMin</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">thresholdMin</span><span class="o">;</span>
880 <span class="k">if</span><span class="o">(</span><span class="nb">isNaN</span><span class="o">(</span><span class="nx">thresholdMin</span><span class="o">)</span> <span class="o">||</span> <span class="o">(</span><span class="nx">thresholdMin</span> <span class="o">&gt;</span> <span class="k">this</span><span class="o">.</span><span class="nx">thresholdMax</span><span class="o">))</span> <span class="o">{</span>
881 <span class="nx">thresholdMin</span> <span class="o">=</span> <span class="m">0</span><span class="o">;</span>
882 <span class="o">}</span>
883 <span class="k">var</span> <span class="nx">entriesStartIndex</span> <span class="o">=</span> <span class="o">(</span><span class="nx">entriesLen</span> <span class="o">&gt;</span> <span class="nx">thresholdMin</span><span class="o">)</span> <span class="o">?</span> <span class="o">(</span><span class="nx">entriesLen</span> <span class="o">-</span> <span class="nx">thresholdMin</span><span class="o">)</span> <span class="o">:</span> <span class="m">0</span><span class="o">;</span>
885 <span class="c">// Iterate through all log entries </span>
886 <span class="c"></span> <span class="k">var</span> <span class="nx">sourceFiltersLen</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_sourceFilters</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
887 <span class="k">var</span> <span class="nx">categoryFiltersLen</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_categoryFilters</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
888 <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="nx">entriesStartIndex</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">entriesLen</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
889 <span class="c">// Print only the ones that filter through</span>
890 <span class="c"></span> <span class="k">var</span> <span class="nx">okToPrint</span> <span class="o">=</span> <span class="kc">false</span><span class="o">;</span>
891 <span class="k">var</span> <span class="nx">okToFilterCats</span> <span class="o">=</span> <span class="kc">false</span><span class="o">;</span>
893 <span class="c">// Get log message details</span>
894 <span class="c"></span> <span class="k">var</span> <span class="nx">entry</span> <span class="o">=</span> <span class="nx">aEntries</span><span class="o">[</span><span class="nx">i</span><span class="o">];</span>
895 <span class="k">var</span> <span class="nx">source</span> <span class="o">=</span> <span class="nx">entry</span><span class="o">.</span><span class="nx">source</span><span class="o">;</span>
896 <span class="k">var</span> <span class="nx">category</span> <span class="o">=</span> <span class="nx">entry</span><span class="o">.</span><span class="nx">category</span><span class="o">;</span>
898 <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">j</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">j</span><span class="o">&lt;</span><span class="nx">sourceFiltersLen</span><span class="o">;</span> <span class="nx">j</span><span class="o">++)</span> <span class="o">{</span>
899 <span class="k">if</span><span class="o">(</span><span class="nx">source</span> <span class="o">==</span> <span class="k">this</span><span class="o">.</span><span class="nx">_sourceFilters</span><span class="o">[</span><span class="nx">j</span><span class="o">])</span> <span class="o">{</span>
900 <span class="nx">okToFilterCats</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
901 <span class="k">break</span><span class="o">;</span>
902 <span class="o">}</span>
903 <span class="o">}</span>
904 <span class="k">if</span><span class="o">(</span><span class="nx">okToFilterCats</span><span class="o">)</span> <span class="o">{</span>
905 <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">k</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">k</span><span class="o">&lt;</span><span class="nx">categoryFiltersLen</span><span class="o">;</span> <span class="nx">k</span><span class="o">++)</span> <span class="o">{</span>
906 <span class="k">if</span><span class="o">(</span><span class="nx">category</span> <span class="o">==</span> <span class="k">this</span><span class="o">.</span><span class="nx">_categoryFilters</span><span class="o">[</span><span class="nx">k</span><span class="o">])</span> <span class="o">{</span>
907 <span class="nx">okToPrint</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
908 <span class="k">break</span><span class="o">;</span>
909 <span class="o">}</span>
910 <span class="o">}</span>
911 <span class="o">}</span>
912 <span class="k">if</span><span class="o">(</span><span class="nx">okToPrint</span><span class="o">)</span> <span class="o">{</span>
913 <span class="k">var</span> <span class="nx">output</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">formatMsg</span><span class="o">(</span><span class="nx">entry</span><span class="o">);</span>
915 <span class="c">// Verbose output uses &lt;code&gt; tag instead of &lt;pre&gt; tag (for wrapping)</span>
916 <span class="c"></span> <span class="k">var</span> <span class="nx">container</span> <span class="o">=</span> <span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">verboseOutput</span><span class="o">)</span> <span class="o">?</span> <span class="s2">&quot;CODE&quot;</span> <span class="o">:</span> <span class="s2">&quot;PRE&quot;</span><span class="o">;</span>
917 <span class="k">var</span> <span class="nx">oNewElement</span> <span class="o">=</span> <span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">newestOnTop</span><span class="o">)</span> <span class="o">?</span>
918 <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">.</span><span class="nx">insertBefore</span><span class="o">(</span>
919 <span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="nx">container</span><span class="o">),</span><span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">.</span><span class="nx">firstChild</span><span class="o">):</span>
920 <span class="k">this</span><span class="o">.</span><span class="nx">_elConsole</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="nx">container</span><span class="o">));</span>
922 <span class="nx">oNewElement</span><span class="o">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">output</span><span class="o">;</span>
923 <span class="k">this</span><span class="o">.</span><span class="nx">_consoleMsgCount</span><span class="o">++;</span>
924 <span class="k">this</span><span class="o">.</span><span class="nx">_lastTime</span> <span class="o">=</span> <span class="nx">entry</span><span class="o">.</span><span class="nx">time</span><span class="o">.</span><span class="nx">getTime</span><span class="o">();</span>
925 <span class="o">}</span>
926 <span class="o">}</span>
927 <span class="o">};</span>
929 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
930 <span class="c">//</span>
931 <span class="c">// Private event handlers</span>
932 <span class="c">//</span>
933 <span class="c">/////////////////////////////////////////////////////////////////////////////</span>
934 <span class="c"></span>
935 <span class="c">/**</span>
936 <span class="c"> * Handles Logger&#39;s categoryCreateEvent.</span>
937 <span class="c"> *</span>
938 <span class="c"> * @method _onCategoryCreate</span>
939 <span class="c"> * @param sType {String} The event.</span>
940 <span class="c"> * @param aArgs {Object[]} Data passed from event firer.</span>
941 <span class="c"> * @param oSelf {Object} The LogReader instance.</span>
942 <span class="c"> * @private</span>
943 <span class="c"> */</span>
944 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_onCategoryCreate</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">sType</span><span class="o">,</span> <span class="nx">aArgs</span><span class="o">,</span> <span class="nx">oSelf</span><span class="o">)</span> <span class="o">{</span>
945 <span class="k">var</span> <span class="nx">category</span> <span class="o">=</span> <span class="nx">aArgs</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
946 <span class="k">if</span><span class="o">(</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">)</span> <span class="o">{</span>
947 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_createCategoryCheckbox</span><span class="o">(</span><span class="nx">category</span><span class="o">);</span>
948 <span class="o">}</span>
949 <span class="o">};</span>
951 <span class="c">/**</span>
952 <span class="c"> * Handles Logger&#39;s sourceCreateEvent.</span>
953 <span class="c"> *</span>
954 <span class="c"> * @method _onSourceCreate</span>
955 <span class="c"> * @param sType {String} The event.</span>
956 <span class="c"> * @param aArgs {Object[]} Data passed from event firer.</span>
957 <span class="c"> * @param oSelf {Object} The LogReader instance.</span>
958 <span class="c"> * @private</span>
959 <span class="c"> */</span>
960 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_onSourceCreate</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">sType</span><span class="o">,</span> <span class="nx">aArgs</span><span class="o">,</span> <span class="nx">oSelf</span><span class="o">)</span> <span class="o">{</span>
961 <span class="k">var</span> <span class="nx">source</span> <span class="o">=</span> <span class="nx">aArgs</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
962 <span class="k">if</span><span class="o">(</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">_elFt</span><span class="o">)</span> <span class="o">{</span>
963 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_createSourceCheckbox</span><span class="o">(</span><span class="nx">source</span><span class="o">);</span>
964 <span class="o">}</span>
965 <span class="o">};</span>
967 <span class="c">/**</span>
968 <span class="c"> * Handles check events on the category filter checkboxes.</span>
969 <span class="c"> *</span>
970 <span class="c"> * @method _onCheckCategory</span>
971 <span class="c"> * @param v {HTMLEvent} The click event.</span>
972 <span class="c"> * @param oSelf {Object} The LogReader instance.</span>
973 <span class="c"> * @private</span>
974 <span class="c"> */</span>
975 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_onCheckCategory</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">v</span><span class="o">,</span> <span class="nx">oSelf</span><span class="o">)</span> <span class="o">{</span>
976 <span class="k">var</span> <span class="nx">newFilter</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">category</span><span class="o">;</span>
977 <span class="k">var</span> <span class="nx">filtersArray</span> <span class="o">=</span> <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_categoryFilters</span><span class="o">;</span>
979 <span class="k">if</span><span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">checked</span><span class="o">)</span> <span class="o">{</span> <span class="c">// Remove category from filters</span>
980 <span class="c"></span> <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">filtersArray</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
981 <span class="k">if</span><span class="o">(</span><span class="nx">newFilter</span> <span class="o">==</span> <span class="nx">filtersArray</span><span class="o">[</span><span class="nx">i</span><span class="o">])</span> <span class="o">{</span>
982 <span class="nx">filtersArray</span><span class="o">.</span><span class="nx">splice</span><span class="o">(</span><span class="nx">i</span><span class="o">,</span> <span class="m">1</span><span class="o">);</span>
983 <span class="k">break</span><span class="o">;</span>
984 <span class="o">}</span>
985 <span class="o">}</span>
986 <span class="o">}</span>
987 <span class="k">else</span> <span class="o">{</span> <span class="c">// Add category to filters</span>
988 <span class="c"></span> <span class="nx">filtersArray</span><span class="o">.</span><span class="nx">push</span><span class="o">(</span><span class="nx">newFilter</span><span class="o">);</span>
989 <span class="o">}</span>
990 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_filterLogs</span><span class="o">();</span>
991 <span class="o">};</span>
993 <span class="c">/**</span>
994 <span class="c"> * Handles check events on the category filter checkboxes.</span>
995 <span class="c"> *</span>
996 <span class="c"> * @method _onCheckSource</span>
997 <span class="c"> * @param v {HTMLEvent} The click event.</span>
998 <span class="c"> * @param oSelf {Object} The LogReader instance.</span>
999 <span class="c"> * @private</span>
1000 <span class="c"> */</span>
1001 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_onCheckSource</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">v</span><span class="o">,</span> <span class="nx">oSelf</span><span class="o">)</span> <span class="o">{</span>
1002 <span class="k">var</span> <span class="nx">newFilter</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">source</span><span class="o">;</span>
1003 <span class="k">var</span> <span class="nx">filtersArray</span> <span class="o">=</span> <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_sourceFilters</span><span class="o">;</span>
1005 <span class="k">if</span><span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">checked</span><span class="o">)</span> <span class="o">{</span> <span class="c">// Remove category from filters</span>
1006 <span class="c"></span> <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">filtersArray</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
1007 <span class="k">if</span><span class="o">(</span><span class="nx">newFilter</span> <span class="o">==</span> <span class="nx">filtersArray</span><span class="o">[</span><span class="nx">i</span><span class="o">])</span> <span class="o">{</span>
1008 <span class="nx">filtersArray</span><span class="o">.</span><span class="nx">splice</span><span class="o">(</span><span class="nx">i</span><span class="o">,</span> <span class="m">1</span><span class="o">);</span>
1009 <span class="k">break</span><span class="o">;</span>
1010 <span class="o">}</span>
1011 <span class="o">}</span>
1012 <span class="o">}</span>
1013 <span class="k">else</span> <span class="o">{</span> <span class="c">// Add category to filters</span>
1014 <span class="c"></span> <span class="nx">filtersArray</span><span class="o">.</span><span class="nx">push</span><span class="o">(</span><span class="nx">newFilter</span><span class="o">);</span>
1015 <span class="o">}</span>
1016 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_filterLogs</span><span class="o">();</span>
1017 <span class="o">};</span>
1019 <span class="c">/**</span>
1020 <span class="c"> * Handles click events on the collapse button.</span>
1021 <span class="c"> *</span>
1022 <span class="c"> * @method _onClickCollapseBtn</span>
1023 <span class="c"> * @param v {HTMLEvent} The click event.</span>
1024 <span class="c"> * @param oSelf {Object} The LogReader instance</span>
1025 <span class="c"> * @private</span>
1026 <span class="c"> */</span>
1027 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_onClickCollapseBtn</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">v</span><span class="o">,</span> <span class="nx">oSelf</span><span class="o">)</span> <span class="o">{</span>
1028 <span class="k">if</span><span class="o">(!</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">isCollapsed</span><span class="o">)</span> <span class="o">{</span>
1029 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">collapse</span><span class="o">();</span>
1030 <span class="o">}</span>
1031 <span class="k">else</span> <span class="o">{</span>
1032 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">expand</span><span class="o">();</span>
1033 <span class="o">}</span>
1034 <span class="o">};</span>
1036 <span class="c">/**</span>
1037 <span class="c"> * Handles click events on the pause button.</span>
1038 <span class="c"> *</span>
1039 <span class="c"> * @method _onClickPauseBtn</span>
1040 <span class="c"> * @param v {HTMLEvent} The click event.</span>
1041 <span class="c"> * @param oSelf {Object} The LogReader instance.</span>
1042 <span class="c"> * @private</span>
1043 <span class="c"> */</span>
1044 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_onClickPauseBtn</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">v</span><span class="o">,</span> <span class="nx">oSelf</span><span class="o">)</span> <span class="o">{</span>
1045 <span class="k">var</span> <span class="nx">btn</span> <span class="o">=</span> <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_btnPause</span><span class="o">;</span>
1046 <span class="k">if</span><span class="o">(</span><span class="nx">btn</span><span class="o">.</span><span class="nx">value</span> <span class="o">==</span> <span class="s2">&quot;Resume&quot;</span><span class="o">)</span> <span class="o">{</span>
1047 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">resume</span><span class="o">();</span>
1048 <span class="nx">btn</span><span class="o">.</span><span class="nx">value</span> <span class="o">=</span> <span class="s2">&quot;Pause&quot;</span><span class="o">;</span>
1049 <span class="o">}</span>
1050 <span class="k">else</span> <span class="o">{</span>
1051 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">pause</span><span class="o">();</span>
1052 <span class="nx">btn</span><span class="o">.</span><span class="nx">value</span> <span class="o">=</span> <span class="s2">&quot;Resume&quot;</span><span class="o">;</span>
1053 <span class="o">}</span>
1054 <span class="o">};</span>
1056 <span class="c">/**</span>
1057 <span class="c"> * Handles click events on the clear button.</span>
1058 <span class="c"> *</span>
1059 <span class="c"> * @method _onClickClearBtn</span>
1060 <span class="c"> * @param v {HTMLEvent} The click event.</span>
1061 <span class="c"> * @param oSelf {Object} The LogReader instance.</span>
1062 <span class="c"> * @private</span>
1063 <span class="c"> */</span>
1064 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_onClickClearBtn</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">v</span><span class="o">,</span> <span class="nx">oSelf</span><span class="o">)</span> <span class="o">{</span>
1065 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_clearConsole</span><span class="o">();</span>
1066 <span class="o">};</span>
1068 <span class="c">/**</span>
1069 <span class="c"> * Handles Logger&#39;s newLogEvent.</span>
1070 <span class="c"> *</span>
1071 <span class="c"> * @method _onNewLog</span>
1072 <span class="c"> * @param sType {String} The event.</span>
1073 <span class="c"> * @param aArgs {Object[]} Data passed from event firer.</span>
1074 <span class="c"> * @param oSelf {Object} The LogReader instance.</span>
1075 <span class="c"> * @private</span>
1076 <span class="c"> */</span>
1077 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_onNewLog</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">sType</span><span class="o">,</span> <span class="nx">aArgs</span><span class="o">,</span> <span class="nx">oSelf</span><span class="o">)</span> <span class="o">{</span>
1078 <span class="k">var</span> <span class="nx">logEntry</span> <span class="o">=</span> <span class="nx">aArgs</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
1079 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_buffer</span><span class="o">.</span><span class="nx">push</span><span class="o">(</span><span class="nx">logEntry</span><span class="o">);</span>
1081 <span class="k">if</span> <span class="o">(</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">logReaderEnabled</span> <span class="o">===</span> <span class="kc">true</span> <span class="o">&amp;&amp;</span> <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_timeout</span> <span class="o">===</span> <span class="kc">null</span><span class="o">)</span> <span class="o">{</span>
1082 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_timeout</span> <span class="o">=</span> <span class="nx">setTimeout</span><span class="o">(</span><span class="k">function</span><span class="o">(){</span><span class="nx">oSelf</span><span class="o">.</span><span class="nx">_printBuffer</span><span class="o">();},</span> <span class="m">100</span><span class="o">);</span>
1083 <span class="o">}</span>
1084 <span class="o">};</span>
1086 <span class="c">/**</span>
1087 <span class="c"> * Handles Logger&#39;s resetEvent.</span>
1088 <span class="c"> *</span>
1089 <span class="c"> * @method _onReset</span>
1090 <span class="c"> * @param sType {String} The event.</span>
1091 <span class="c"> * @param aArgs {Object[]} Data passed from event firer.</span>
1092 <span class="c"> * @param oSelf {Object} The LogReader instance.</span>
1093 <span class="c"> * @private</span>
1094 <span class="c"> */</span>
1095 <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">LogReader</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">_onReset</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">sType</span><span class="o">,</span> <span class="nx">aArgs</span><span class="o">,</span> <span class="nx">oSelf</span><span class="o">)</span> <span class="o">{</span>
1096 <span class="nx">oSelf</span><span class="o">.</span><span class="nx">_filterLogs</span><span class="o">();</span>
1097 <span class="o">};</span>
1098 </pre></div>
1099 </div>
1100 </div>
1101 </div>
1102 <div class="yui-b">
1103 <div class="nav">
1105 <div class="module">
1106 <h4>Modules</h4>
1107 <ul class="content">
1109 <li class=""><a href="module_animation.html">animation</a></li>
1111 <li class=""><a href="module_autocomplete.html">autocomplete</a></li>
1113 <li class=""><a href="module_button.html">button</a></li>
1115 <li class=""><a href="module_calendar.html">calendar</a></li>
1117 <li class=""><a href="module_connection.html">connection</a></li>
1119 <li class=""><a href="module_container.html">container</a></li>
1121 <li class=""><a href="module_datasource.html">datasource</a></li>
1123 <li class=""><a href="module_datatable.html">datatable</a></li>
1125 <li class=""><a href="module_dom.html">dom</a></li>
1127 <li class=""><a href="module_dragdrop.html">dragdrop</a></li>
1129 <li class=""><a href="module_element.html">element</a></li>
1131 <li class=""><a href="module_event.html">event</a></li>
1133 <li class=""><a href="module_history.html">history</a></li>
1135 <li class="selected"><a href="module_logger.html">logger</a></li>
1137 <li class=""><a href="module_menu.html">menu</a></li>
1139 <li class=""><a href="module_slider.html">slider</a></li>
1141 <li class=""><a href="module_tabview.html">tabview</a></li>
1143 <li class=""><a href="module_treeview.html">treeview</a></li>
1145 <li class=""><a href="module_yahoo.html">yahoo</a></li>
1146 </ul>
1147 </div>
1149 <div class="module">
1150 <h4>Classes</h4>
1151 <ul class="content">
1152 <li class=""><a href="LogMsg.html">LogMsg</a></li>
1153 <li class=""><a href="LogReader.html">LogReader</a></li>
1154 <li class=""><a href="LogWriter.html">LogWriter</a></li>
1155 <li class=""><a href="YAHOO.widget.Logger.html">YAHOO.widget.Logger</a></li>
1156 </ul>
1157 </div>
1159 <div class="module">
1160 <h4>Files</h4>
1161 <ul class="content">
1162 <li class=""><a href="Logger.js.html">Logger.js</a></li>
1163 <li class=""><a href="LogMsg.js.html">LogMsg.js</a></li>
1164 <li class="selected"><a href="LogReader.js.html">LogReader.js</a></li>
1165 <li class=""><a href="LogWriter.js.html">LogWriter.js</a></li>
1166 </ul>
1167 </div>
1173 </div>
1174 </div>
1175 </div>
1176 <div id="ft">
1177 <hr />
1178 Copyright &copy; 2007 Yahoo! Inc. All rights reserved.
1179 </div>
1180 </div>
1181 </body>
1182 </html>