log4r 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. data/README +3 -3
  2. data/Rakefile +2 -2
  3. data/doc/rdoc/Log4r.html +519 -0
  4. data/doc/rdoc/Log4r/BasicFormatter.html +388 -0
  5. data/doc/rdoc/Log4r/ConfigError.html +225 -0
  6. data/doc/rdoc/Log4r/Configurator.html +1068 -0
  7. data/doc/rdoc/Log4r/DateFileOutputter.html +479 -0
  8. data/doc/rdoc/Log4r/DefaultFormatter.html +223 -0
  9. data/doc/rdoc/Log4r/EmailOutputter.html +654 -0
  10. data/doc/rdoc/Log4r/FileOutputter.html +346 -0
  11. data/doc/rdoc/Log4r/Formatter.html +309 -0
  12. data/doc/rdoc/Log4r/GDC.html +346 -0
  13. data/doc/rdoc/Log4r/GDC_rb.html +80 -0
  14. data/doc/rdoc/Log4r/IOOutputter.html +410 -0
  15. data/doc/rdoc/Log4r/Log4jXmlFormatter.html +337 -0
  16. data/doc/rdoc/Log4r/Log4rConfig.html +211 -0
  17. data/doc/rdoc/Log4r/Log4rTools.html +388 -0
  18. data/doc/rdoc/Log4r/LogEvent.html +378 -0
  19. data/doc/rdoc/Log4r/LogServer.html +340 -0
  20. data/doc/rdoc/Log4r/Logger.html +1150 -0
  21. data/doc/rdoc/Log4r/Logger/LoggerFactory.html +218 -0
  22. data/doc/rdoc/Log4r/Logger/Repository.html +225 -0
  23. data/doc/rdoc/Log4r/MDC.html +424 -0
  24. data/doc/rdoc/Log4r/MDC_rb.html +83 -0
  25. data/doc/rdoc/Log4r/NDC.html +632 -0
  26. data/doc/rdoc/Log4r/NDC_rb.html +110 -0
  27. data/doc/rdoc/Log4r/ObjectFormatter.html +280 -0
  28. data/doc/rdoc/Log4r/Outputter.html +934 -0
  29. data/doc/rdoc/Log4r/Outputter/OutputterFactory.html +218 -0
  30. data/doc/rdoc/Log4r/Outputter/consoleoutputters_rb.html +57 -0
  31. data/doc/rdoc/Log4r/Outputter/datefileoutputter_rb.html +93 -0
  32. data/doc/rdoc/Log4r/Outputter/emailoutputter_rb.html +179 -0
  33. data/doc/rdoc/Log4r/Outputter/fileoutputter_rb.html +64 -0
  34. data/doc/rdoc/Log4r/Outputter/iooutputter_rb.html +59 -0
  35. data/doc/rdoc/Log4r/Outputter/outputter_rb.html +222 -0
  36. data/doc/rdoc/Log4r/Outputter/outputterfactory_rb.html +62 -0
  37. data/doc/rdoc/Log4r/Outputter/remoteoutputter_rb.html +59 -0
  38. data/doc/rdoc/Log4r/Outputter/rollingfileoutputter_rb.html +66 -0
  39. data/doc/rdoc/Log4r/Outputter/staticoutputter_rb.html +55 -0
  40. data/doc/rdoc/Log4r/Outputter/syslogoutputter_rb.html +110 -0
  41. data/doc/rdoc/Log4r/Outputter/udpoutputter_rb.html +220 -0
  42. data/doc/rdoc/Log4r/PatternFormatter.html +404 -0
  43. data/doc/rdoc/Log4r/ROMPClient.html +211 -0
  44. data/doc/rdoc/Log4r/ROMPServer.html +211 -0
  45. data/doc/rdoc/Log4r/RemoteOutputter.html +402 -0
  46. data/doc/rdoc/Log4r/RollingFileOutputter.html +551 -0
  47. data/doc/rdoc/Log4r/RootLogger.html +530 -0
  48. data/doc/rdoc/Log4r/SimpleFormatter.html +276 -0
  49. data/doc/rdoc/Log4r/StderrOutputter.html +268 -0
  50. data/doc/rdoc/Log4r/StdoutOutputter.html +268 -0
  51. data/doc/rdoc/Log4r/SyslogOutputter.html +551 -0
  52. data/doc/rdoc/Log4r/UDPOutputter.html +379 -0
  53. data/doc/rdoc/Log4r/YamlConfigurator.html +966 -0
  54. data/doc/rdoc/Log4r/base_rb.html +57 -0
  55. data/doc/rdoc/Log4r/config_rb.html +122 -0
  56. data/doc/rdoc/Log4r/configurator_rb.html +370 -0
  57. data/doc/rdoc/Log4r/formatter/formatter_rb.html +121 -0
  58. data/doc/rdoc/Log4r/formatter/log4jxmlformatter_rb.html +64 -0
  59. data/doc/rdoc/Log4r/formatter/patternformatter_rb.html +239 -0
  60. data/doc/rdoc/Log4r/lib/drbloader_rb.html +57 -0
  61. data/doc/rdoc/Log4r/lib/xmlloader_rb.html +57 -0
  62. data/doc/rdoc/Log4r/logevent_rb.html +55 -0
  63. data/doc/rdoc/Log4r/logger_rb.html +293 -0
  64. data/doc/rdoc/Log4r/loggerfactory_rb.html +66 -0
  65. data/doc/rdoc/Log4r/logserver_rb.html +161 -0
  66. data/doc/rdoc/Log4r/rdoc/GDC.html +175 -0
  67. data/doc/rdoc/Log4r/rdoc/MDC.html +178 -0
  68. data/doc/rdoc/Log4r/rdoc/NDC.html +207 -0
  69. data/doc/rdoc/Log4r/rdoc/configurator.html +462 -0
  70. data/doc/rdoc/Log4r/rdoc/emailoutputter.html +279 -0
  71. data/doc/rdoc/Log4r/rdoc/formatter.html +218 -0
  72. data/doc/rdoc/Log4r/rdoc/log4r.html +286 -0
  73. data/doc/rdoc/Log4r/rdoc/logger.html +382 -0
  74. data/doc/rdoc/Log4r/rdoc/logserver.html +265 -0
  75. data/doc/rdoc/Log4r/rdoc/outputter.html +313 -0
  76. data/doc/rdoc/Log4r/rdoc/patternformatter.html +331 -0
  77. data/doc/rdoc/Log4r/rdoc/syslogoutputter.html +197 -0
  78. data/doc/rdoc/Log4r/rdoc/win32eventoutputter.html +165 -0
  79. data/doc/rdoc/Log4r/rdoc/yamlconfigurator.html +187 -0
  80. data/doc/rdoc/Log4r/repository_rb.html +74 -0
  81. data/doc/rdoc/Log4r/staticlogger_rb.html +55 -0
  82. data/doc/rdoc/Log4r/yamlconfigurator_rb.html +95 -0
  83. data/doc/rdoc/REXML.html +211 -0
  84. data/doc/rdoc/created.rid +1 -0
  85. data/doc/rdoc/images/brick.png +0 -0
  86. data/doc/rdoc/images/brick_link.png +0 -0
  87. data/doc/rdoc/images/bug.png +0 -0
  88. data/doc/rdoc/images/bullet_black.png +0 -0
  89. data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
  90. data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
  91. data/doc/rdoc/images/date.png +0 -0
  92. data/doc/rdoc/images/find.png +0 -0
  93. data/doc/rdoc/images/loadingAnimation.gif +0 -0
  94. data/doc/rdoc/images/macFFBgHack.png +0 -0
  95. data/doc/rdoc/images/package.png +0 -0
  96. data/doc/rdoc/images/page_green.png +0 -0
  97. data/doc/rdoc/images/page_white_text.png +0 -0
  98. data/doc/rdoc/images/page_white_width.png +0 -0
  99. data/doc/rdoc/images/plugin.png +0 -0
  100. data/doc/rdoc/images/ruby.png +0 -0
  101. data/doc/rdoc/images/tag_green.png +0 -0
  102. data/doc/rdoc/images/wrench.png +0 -0
  103. data/doc/rdoc/images/wrench_orange.png +0 -0
  104. data/doc/rdoc/images/zoom.png +0 -0
  105. data/doc/rdoc/index.html +585 -0
  106. data/doc/rdoc/js/darkfish.js +116 -0
  107. data/doc/rdoc/js/jquery.js +32 -0
  108. data/doc/rdoc/js/quicksearch.js +114 -0
  109. data/doc/rdoc/js/thickbox-compressed.js +10 -0
  110. data/doc/rdoc/log4r-rdoc.css +696 -0
  111. data/doc/rdoc/log4r_rb.html +207 -0
  112. data/doc/rdoc/rdoc.css +696 -0
  113. data/examples/rdoc-gen +2 -0
  114. data/src/log4r.rb +2 -2
  115. data/src/log4r/formatter/patternformatter.rb +15 -15
  116. data/src/log4r/outputter/udpoutputter.rb +4 -4
  117. data/tests/testchainsaw.rb +1 -1
  118. metadata +123 -8
  119. data/src/log4r/outputter/datefileoutputter.patch +0 -24
  120. data/src/log4r/outputter/diff +0 -14
  121. data/src/log4r/outputter/new-datefileoutputter.rb +0 -117
@@ -0,0 +1,346 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Log4r::GDC</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="file-metadata">
26
+ <div id="file-list-section" class="section">
27
+ <h3 class="section-header">In Files</h3>
28
+ <div class="section-body">
29
+ <ul>
30
+
31
+ <li><a href="../log4r/GDC_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
32
+ class="thickbox" title="log4r/GDC.rb">log4r/GDC.rb</a></li>
33
+
34
+ </ul>
35
+ </div>
36
+ </div>
37
+
38
+
39
+ </div>
40
+
41
+ <div id="class-metadata">
42
+
43
+ <!-- Parent Class -->
44
+
45
+ <div id="parent-class-section" class="section">
46
+ <h3 class="section-header">Parent</h3>
47
+
48
+ <p class="link">Monitor</p>
49
+
50
+ </div>
51
+
52
+
53
+ <!-- Namespace Contents -->
54
+
55
+
56
+ <!-- Method Quickref -->
57
+
58
+ <div id="method-list-section" class="section">
59
+ <h3 class="section-header">Methods</h3>
60
+ <ul class="link-list">
61
+
62
+ <li><a href="#M000035">::clear</a></li>
63
+
64
+ <li><a href="#M000036">::get</a></li>
65
+
66
+ <li><a href="#M000037">::set</a></li>
67
+
68
+ </ul>
69
+ </div>
70
+
71
+
72
+ <!-- Included Modules -->
73
+
74
+ </div>
75
+
76
+ <div id="project-metadata">
77
+
78
+
79
+ <div id="fileindex-section" class="section project-section">
80
+ <h3 class="section-header">Files</h3>
81
+ <ul>
82
+
83
+ <li class="file"><a href="../log4r/rdoc/GDC.html">GDC</a></li>
84
+
85
+ <li class="file"><a href="../log4r/rdoc/MDC.html">MDC</a></li>
86
+
87
+ <li class="file"><a href="../log4r/rdoc/NDC.html">NDC</a></li>
88
+
89
+ <li class="file"><a href="../log4r/rdoc/configurator.html">configurator</a></li>
90
+
91
+ <li class="file"><a href="../log4r/rdoc/emailoutputter.html">emailoutputter</a></li>
92
+
93
+ <li class="file"><a href="../log4r/rdoc/formatter.html">formatter</a></li>
94
+
95
+ <li class="file"><a href="../log4r/rdoc/log4r.html">log4r</a></li>
96
+
97
+ <li class="file"><a href="../log4r/rdoc/logger.html">logger</a></li>
98
+
99
+ <li class="file"><a href="../log4r/rdoc/logserver.html">logserver</a></li>
100
+
101
+ <li class="file"><a href="../log4r/rdoc/outputter.html">outputter</a></li>
102
+
103
+ <li class="file"><a href="../log4r/rdoc/patternformatter.html">patternformatter</a></li>
104
+
105
+ <li class="file"><a href="../log4r/rdoc/syslogoutputter.html">syslogoutputter</a></li>
106
+
107
+ <li class="file"><a href="../log4r/rdoc/win32eventoutputter.html">win32eventoutputter</a></li>
108
+
109
+ <li class="file"><a href="../log4r/rdoc/yamlconfigurator.html">yamlconfigurator</a></li>
110
+
111
+ </ul>
112
+ </div>
113
+
114
+
115
+ <div id="classindex-section" class="section project-section">
116
+ <h3 class="section-header">Class Index
117
+ <span class="search-toggle"><img src="../images/find.png"
118
+ height="16" width="16" alt="[+]"
119
+ title="show/hide quicksearch" /></span></h3>
120
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
121
+ <fieldset>
122
+ <legend>Quicksearch</legend>
123
+ <input type="text" name="quicksearch" value=""
124
+ class="quicksearch-field" />
125
+ </fieldset>
126
+ </form>
127
+
128
+ <ul class="link-list">
129
+
130
+ <li><a href="../Log4r.html">Log4r</a></li>
131
+
132
+ <li><a href="../Log4r/BasicFormatter.html">Log4r::BasicFormatter</a></li>
133
+
134
+ <li><a href="../Log4r/ConfigError.html">Log4r::ConfigError</a></li>
135
+
136
+ <li><a href="../Log4r/Configurator.html">Log4r::Configurator</a></li>
137
+
138
+ <li><a href="../Log4r/DateFileOutputter.html">Log4r::DateFileOutputter</a></li>
139
+
140
+ <li><a href="../Log4r/DefaultFormatter.html">Log4r::DefaultFormatter</a></li>
141
+
142
+ <li><a href="../Log4r/EmailOutputter.html">Log4r::EmailOutputter</a></li>
143
+
144
+ <li><a href="../Log4r/FileOutputter.html">Log4r::FileOutputter</a></li>
145
+
146
+ <li><a href="../Log4r/Formatter.html">Log4r::Formatter</a></li>
147
+
148
+ <li><a href="../Log4r/GDC.html">Log4r::GDC</a></li>
149
+
150
+ <li><a href="../Log4r/IOOutputter.html">Log4r::IOOutputter</a></li>
151
+
152
+ <li><a href="../Log4r/Log4jXmlFormatter.html">Log4r::Log4jXmlFormatter</a></li>
153
+
154
+ <li><a href="../Log4r/Log4rTools.html">Log4r::Log4rTools</a></li>
155
+
156
+ <li><a href="../Log4r/LogEvent.html">Log4r::LogEvent</a></li>
157
+
158
+ <li><a href="../Log4r/LogServer.html">Log4r::LogServer</a></li>
159
+
160
+ <li><a href="../Log4r/Logger.html">Log4r::Logger</a></li>
161
+
162
+ <li><a href="../Log4r/MDC.html">Log4r::MDC</a></li>
163
+
164
+ <li><a href="../Log4r/NDC.html">Log4r::NDC</a></li>
165
+
166
+ <li><a href="../Log4r/ObjectFormatter.html">Log4r::ObjectFormatter</a></li>
167
+
168
+ <li><a href="../Log4r/Outputter.html">Log4r::Outputter</a></li>
169
+
170
+ <li><a href="../Log4r/PatternFormatter.html">Log4r::PatternFormatter</a></li>
171
+
172
+ <li><a href="../Log4r/RemoteOutputter.html">Log4r::RemoteOutputter</a></li>
173
+
174
+ <li><a href="../Log4r/RollingFileOutputter.html">Log4r::RollingFileOutputter</a></li>
175
+
176
+ <li><a href="../Log4r/RootLogger.html">Log4r::RootLogger</a></li>
177
+
178
+ <li><a href="../Log4r/SimpleFormatter.html">Log4r::SimpleFormatter</a></li>
179
+
180
+ <li><a href="../Log4r/StderrOutputter.html">Log4r::StderrOutputter</a></li>
181
+
182
+ <li><a href="../Log4r/StdoutOutputter.html">Log4r::StdoutOutputter</a></li>
183
+
184
+ <li><a href="../Log4r/SyslogOutputter.html">Log4r::SyslogOutputter</a></li>
185
+
186
+ <li><a href="../Log4r/UDPOutputter.html">Log4r::UDPOutputter</a></li>
187
+
188
+ <li><a href="../Log4r/YamlConfigurator.html">Log4r::YamlConfigurator</a></li>
189
+
190
+ </ul>
191
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
192
+ </div>
193
+
194
+
195
+ </div>
196
+ </div>
197
+
198
+ <div id="documentation">
199
+ <h1 class="class">Log4r::GDC</h1>
200
+
201
+ <div id="description">
202
+ <p>
203
+ See <a href="../log4r/GDC_rb.html">log4r/GDC.rb</a>
204
+ </p>
205
+
206
+ </div>
207
+
208
+ <!-- Constants -->
209
+
210
+
211
+ <!-- Attributes -->
212
+
213
+
214
+ <!-- Methods -->
215
+
216
+ <div id="public-class-method-details" class="method-section section">
217
+ <h3 class="section-header">Public Class Methods</h3>
218
+
219
+
220
+ <div id="clear-method" class="method-detail ">
221
+ <a name="M000035"></a>
222
+
223
+ <div class="method-heading">
224
+
225
+ <span class="method-name">clear</span><span
226
+ class="method-args">()</span>
227
+ <span class="method-click-advice">click to toggle source</span>
228
+
229
+ </div>
230
+
231
+ <div class="method-description">
232
+
233
+ <p class="missing-docs">(Not documented)</p>
234
+
235
+
236
+
237
+ <div class="method-source-code"
238
+ id="clear-source">
239
+ <pre>
240
+ <span class="ruby-comment cmt"># File log4r/GDC.rb, line 18</span>
241
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">clear</span>()
242
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span>[<span class="ruby-constant">GDCNAME</span>] = <span class="ruby-value str">&quot;&quot;</span>
243
+ <span class="ruby-keyword kw">end</span></pre>
244
+ </div>
245
+
246
+ </div>
247
+
248
+
249
+ </div>
250
+
251
+
252
+ <div id="get-method" class="method-detail ">
253
+ <a name="M000036"></a>
254
+
255
+ <div class="method-heading">
256
+
257
+ <span class="method-name">get</span><span
258
+ class="method-args">()</span>
259
+ <span class="method-click-advice">click to toggle source</span>
260
+
261
+ </div>
262
+
263
+ <div class="method-description">
264
+
265
+ <p class="missing-docs">(Not documented)</p>
266
+
267
+
268
+
269
+ <div class="method-source-code"
270
+ id="get-source">
271
+ <pre>
272
+ <span class="ruby-comment cmt"># File log4r/GDC.rb, line 22</span>
273
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get</span>()
274
+ <span class="ruby-identifier">$globalGDCLock</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
275
+ <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span>[<span class="ruby-constant">GDCNAME</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span> ) <span class="ruby-keyword kw">then</span>
276
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span>[<span class="ruby-constant">GDCNAME</span>] = <span class="ruby-identifier">$0</span>
277
+ <span class="ruby-keyword kw">end</span>
278
+ <span class="ruby-keyword kw">end</span>
279
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span>[<span class="ruby-constant">GDCNAME</span>]
280
+ <span class="ruby-keyword kw">end</span></pre>
281
+ </div>
282
+
283
+ </div>
284
+
285
+
286
+ </div>
287
+
288
+
289
+ <div id="set-method" class="method-detail ">
290
+ <a name="M000037"></a>
291
+
292
+ <div class="method-heading">
293
+
294
+ <span class="method-name">set</span><span
295
+ class="method-args">( a_name )</span>
296
+ <span class="method-click-advice">click to toggle source</span>
297
+
298
+ </div>
299
+
300
+ <div class="method-description">
301
+
302
+ <p class="missing-docs">(Not documented)</p>
303
+
304
+
305
+
306
+ <div class="method-source-code"
307
+ id="set-source">
308
+ <pre>
309
+ <span class="ruby-comment cmt"># File log4r/GDC.rb, line 31</span>
310
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">set</span>( <span class="ruby-identifier">a_name</span> )
311
+ <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span> <span class="ruby-operator">!=</span> <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span> ) <span class="ruby-keyword kw">then</span>
312
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Can only initialize Global Diagnostic Context from Thread.main&quot;</span>
313
+ <span class="ruby-keyword kw">end</span>
314
+ <span class="ruby-identifier">$globalGDCLock</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
315
+ <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">main</span>[<span class="ruby-constant">GDCNAME</span>] = <span class="ruby-identifier">a_name</span>
316
+ <span class="ruby-keyword kw">end</span>
317
+ <span class="ruby-keyword kw">end</span></pre>
318
+ </div>
319
+
320
+ </div>
321
+
322
+
323
+ </div>
324
+
325
+
326
+ </div>
327
+
328
+
329
+ </div>
330
+
331
+
332
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
333
+
334
+ <p>Disabled; run with --debug to generate this.</p>
335
+
336
+ </div>
337
+
338
+ <div id="validator-badges">
339
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
340
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
341
+ Rdoc Generator</a> 1.1.6</small>.</p>
342
+ </div>
343
+
344
+ </body>
345
+ </html>
346
+
@@ -0,0 +1,80 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: GDC.rb [1.1.7 Log4r API]</title>
10
+
11
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">Tue Feb 02 21:11:40 -0800 2010</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>monitor</li>
35
+
36
+ </ul>
37
+ </dd>
38
+
39
+
40
+
41
+ </dl>
42
+ </div>
43
+
44
+ <div id="documentation">
45
+
46
+ <div class="description">
47
+ <h2>Description</h2>
48
+ <h1>GDC</h1>
49
+ <p>
50
+ The GDC class implements a copy of the Global Diagnostic Context, which is
51
+ not part of the Apache Log4j library, as of this writing (10 Jan 2009).
52
+ </p>
53
+ <p>
54
+ The GDC is like the NDC and MDC classes, only it is global to the
55
+ application (see NDC and MDC for details on those classes).
56
+ </p>
57
+ <p>
58
+ The GDC is local to the main thread, and any new threads will return the
59
+ value of the current GDC set in the main thread.
60
+ </p>
61
+ <p>
62
+ Only the main thread can set the GDC, any other threads that attempt to
63
+ will raise an exception.
64
+ </p>
65
+ <h2>Other Info</h2>
66
+ <table>
67
+ <tr><td valign="top">Version:</td><td>$Id: GDC.rb,v 1.4 2010/02/03 05:11:40 colbygk Exp $
68
+
69
+ </td></tr>
70
+ <tr><td valign="top">Author:</td><td>Colby Gutierrez-Kraybill <colby(at)astro.berkeley.edu>
71
+
72
+ </td></tr>
73
+ </table>
74
+
75
+ </div>
76
+
77
+ </div>
78
+ </body>
79
+ </html>
80
+
@@ -0,0 +1,410 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Log4r::IOOutputter</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="file-metadata">
26
+ <div id="file-list-section" class="section">
27
+ <h3 class="section-header">In Files</h3>
28
+ <div class="section-body">
29
+ <ul>
30
+
31
+ <li><a href="../log4r/outputter/iooutputter_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
32
+ class="thickbox" title="log4r/outputter/iooutputter.rb">log4r/outputter/iooutputter.rb</a></li>
33
+
34
+ </ul>
35
+ </div>
36
+ </div>
37
+
38
+
39
+ </div>
40
+
41
+ <div id="class-metadata">
42
+
43
+ <!-- Parent Class -->
44
+
45
+ <div id="parent-class-section" class="section">
46
+ <h3 class="section-header">Parent</h3>
47
+
48
+ <p class="link">Outputter</p>
49
+
50
+ </div>
51
+
52
+
53
+ <!-- Namespace Contents -->
54
+
55
+
56
+ <!-- Method Quickref -->
57
+
58
+ <div id="method-list-section" class="section">
59
+ <h3 class="section-header">Methods</h3>
60
+ <ul class="link-list">
61
+
62
+ <li><a href="#M000094">::new</a></li>
63
+
64
+ <li><a href="#M000096">#close</a></li>
65
+
66
+ <li><a href="#M000095">#closed?</a></li>
67
+
68
+ <li><a href="#M000097">#write</a></li>
69
+
70
+ </ul>
71
+ </div>
72
+
73
+
74
+ <!-- Included Modules -->
75
+
76
+ </div>
77
+
78
+ <div id="project-metadata">
79
+
80
+
81
+ <div id="fileindex-section" class="section project-section">
82
+ <h3 class="section-header">Files</h3>
83
+ <ul>
84
+
85
+ <li class="file"><a href="../log4r/rdoc/GDC.html">GDC</a></li>
86
+
87
+ <li class="file"><a href="../log4r/rdoc/MDC.html">MDC</a></li>
88
+
89
+ <li class="file"><a href="../log4r/rdoc/NDC.html">NDC</a></li>
90
+
91
+ <li class="file"><a href="../log4r/rdoc/configurator.html">configurator</a></li>
92
+
93
+ <li class="file"><a href="../log4r/rdoc/emailoutputter.html">emailoutputter</a></li>
94
+
95
+ <li class="file"><a href="../log4r/rdoc/formatter.html">formatter</a></li>
96
+
97
+ <li class="file"><a href="../log4r/rdoc/log4r.html">log4r</a></li>
98
+
99
+ <li class="file"><a href="../log4r/rdoc/logger.html">logger</a></li>
100
+
101
+ <li class="file"><a href="../log4r/rdoc/logserver.html">logserver</a></li>
102
+
103
+ <li class="file"><a href="../log4r/rdoc/outputter.html">outputter</a></li>
104
+
105
+ <li class="file"><a href="../log4r/rdoc/patternformatter.html">patternformatter</a></li>
106
+
107
+ <li class="file"><a href="../log4r/rdoc/syslogoutputter.html">syslogoutputter</a></li>
108
+
109
+ <li class="file"><a href="../log4r/rdoc/win32eventoutputter.html">win32eventoutputter</a></li>
110
+
111
+ <li class="file"><a href="../log4r/rdoc/yamlconfigurator.html">yamlconfigurator</a></li>
112
+
113
+ </ul>
114
+ </div>
115
+
116
+
117
+ <div id="classindex-section" class="section project-section">
118
+ <h3 class="section-header">Class Index
119
+ <span class="search-toggle"><img src="../images/find.png"
120
+ height="16" width="16" alt="[+]"
121
+ title="show/hide quicksearch" /></span></h3>
122
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
123
+ <fieldset>
124
+ <legend>Quicksearch</legend>
125
+ <input type="text" name="quicksearch" value=""
126
+ class="quicksearch-field" />
127
+ </fieldset>
128
+ </form>
129
+
130
+ <ul class="link-list">
131
+
132
+ <li><a href="../Log4r.html">Log4r</a></li>
133
+
134
+ <li><a href="../Log4r/BasicFormatter.html">Log4r::BasicFormatter</a></li>
135
+
136
+ <li><a href="../Log4r/ConfigError.html">Log4r::ConfigError</a></li>
137
+
138
+ <li><a href="../Log4r/Configurator.html">Log4r::Configurator</a></li>
139
+
140
+ <li><a href="../Log4r/DateFileOutputter.html">Log4r::DateFileOutputter</a></li>
141
+
142
+ <li><a href="../Log4r/DefaultFormatter.html">Log4r::DefaultFormatter</a></li>
143
+
144
+ <li><a href="../Log4r/EmailOutputter.html">Log4r::EmailOutputter</a></li>
145
+
146
+ <li><a href="../Log4r/FileOutputter.html">Log4r::FileOutputter</a></li>
147
+
148
+ <li><a href="../Log4r/Formatter.html">Log4r::Formatter</a></li>
149
+
150
+ <li><a href="../Log4r/GDC.html">Log4r::GDC</a></li>
151
+
152
+ <li><a href="../Log4r/IOOutputter.html">Log4r::IOOutputter</a></li>
153
+
154
+ <li><a href="../Log4r/Log4jXmlFormatter.html">Log4r::Log4jXmlFormatter</a></li>
155
+
156
+ <li><a href="../Log4r/Log4rTools.html">Log4r::Log4rTools</a></li>
157
+
158
+ <li><a href="../Log4r/LogEvent.html">Log4r::LogEvent</a></li>
159
+
160
+ <li><a href="../Log4r/LogServer.html">Log4r::LogServer</a></li>
161
+
162
+ <li><a href="../Log4r/Logger.html">Log4r::Logger</a></li>
163
+
164
+ <li><a href="../Log4r/MDC.html">Log4r::MDC</a></li>
165
+
166
+ <li><a href="../Log4r/NDC.html">Log4r::NDC</a></li>
167
+
168
+ <li><a href="../Log4r/ObjectFormatter.html">Log4r::ObjectFormatter</a></li>
169
+
170
+ <li><a href="../Log4r/Outputter.html">Log4r::Outputter</a></li>
171
+
172
+ <li><a href="../Log4r/PatternFormatter.html">Log4r::PatternFormatter</a></li>
173
+
174
+ <li><a href="../Log4r/RemoteOutputter.html">Log4r::RemoteOutputter</a></li>
175
+
176
+ <li><a href="../Log4r/RollingFileOutputter.html">Log4r::RollingFileOutputter</a></li>
177
+
178
+ <li><a href="../Log4r/RootLogger.html">Log4r::RootLogger</a></li>
179
+
180
+ <li><a href="../Log4r/SimpleFormatter.html">Log4r::SimpleFormatter</a></li>
181
+
182
+ <li><a href="../Log4r/StderrOutputter.html">Log4r::StderrOutputter</a></li>
183
+
184
+ <li><a href="../Log4r/StdoutOutputter.html">Log4r::StdoutOutputter</a></li>
185
+
186
+ <li><a href="../Log4r/SyslogOutputter.html">Log4r::SyslogOutputter</a></li>
187
+
188
+ <li><a href="../Log4r/UDPOutputter.html">Log4r::UDPOutputter</a></li>
189
+
190
+ <li><a href="../Log4r/YamlConfigurator.html">Log4r::YamlConfigurator</a></li>
191
+
192
+ </ul>
193
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
194
+ </div>
195
+
196
+
197
+ </div>
198
+ </div>
199
+
200
+ <div id="documentation">
201
+ <h1 class="class">Log4r::IOOutputter</h1>
202
+
203
+ <div id="description">
204
+ <p>
205
+ IO <a href="Outputter.html">Outputter</a> invokes print then flush on the
206
+ wrapped IO object. If the IO stream dies, <a
207
+ href="IOOutputter.html">IOOutputter</a> sets itself to OFF and the system
208
+ continues on its merry way.
209
+ </p>
210
+ <p>
211
+ To find out why an IO stream died, create a logger named
212
+ &#8216;log4r&#8217; and look at the output.
213
+ </p>
214
+
215
+ </div>
216
+
217
+ <!-- Constants -->
218
+
219
+
220
+ <!-- Attributes -->
221
+
222
+
223
+ <!-- Methods -->
224
+
225
+ <div id="public-class-method-details" class="method-section section">
226
+ <h3 class="section-header">Public Class Methods</h3>
227
+
228
+
229
+ <div id="new-method" class="method-detail ">
230
+ <a name="M000094"></a>
231
+
232
+ <div class="method-heading">
233
+
234
+ <span class="method-name">new</span><span
235
+ class="method-args">(_name, _out, hash={})</span>
236
+ <span class="method-click-advice">click to toggle source</span>
237
+
238
+ </div>
239
+
240
+ <div class="method-description">
241
+
242
+ <p>
243
+ <a href="IOOutputter.html">IOOutputter</a> needs an IO object to write to.
244
+ </p>
245
+
246
+
247
+
248
+ <div class="method-source-code"
249
+ id="new-source">
250
+ <pre>
251
+ <span class="ruby-comment cmt"># File log4r/outputter/iooutputter.rb, line 18</span>
252
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">_name</span>, <span class="ruby-identifier">_out</span>, <span class="ruby-identifier">hash</span>={})
253
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">_name</span>, <span class="ruby-identifier">hash</span>)
254
+ <span class="ruby-ivar">@out</span> = <span class="ruby-identifier">_out</span>
255
+ <span class="ruby-keyword kw">end</span></pre>
256
+ </div>
257
+
258
+ </div>
259
+
260
+
261
+ </div>
262
+
263
+
264
+ </div>
265
+
266
+ <div id="public-instance-method-details" class="method-section section">
267
+ <h3 class="section-header">Public Instance Methods</h3>
268
+
269
+
270
+ <div id="close-method" class="method-detail ">
271
+ <a name="M000096"></a>
272
+
273
+ <div class="method-heading">
274
+
275
+ <span class="method-name">close</span><span
276
+ class="method-args">()</span>
277
+ <span class="method-click-advice">click to toggle source</span>
278
+
279
+ </div>
280
+
281
+ <div class="method-description">
282
+
283
+ <p>
284
+ Close the IO and sets level to OFF
285
+ </p>
286
+
287
+
288
+
289
+ <div class="method-source-code"
290
+ id="close-source">
291
+ <pre>
292
+ <span class="ruby-comment cmt"># File log4r/outputter/iooutputter.rb, line 28</span>
293
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
294
+ <span class="ruby-ivar">@out</span>.<span class="ruby-identifier">close</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@out</span>.<span class="ruby-identifier">nil?</span>
295
+ <span class="ruby-ivar">@level</span> = <span class="ruby-constant">OFF</span>
296
+ <span class="ruby-constant">OutputterFactory</span>.<span class="ruby-identifier">create_methods</span>(<span class="ruby-keyword kw">self</span>)
297
+ <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">log_internal</span> {<span class="ruby-node">&quot;Outputter '#{@name}' closed IO and set to OFF&quot;</span>}
298
+ <span class="ruby-keyword kw">end</span></pre>
299
+ </div>
300
+
301
+ </div>
302
+
303
+
304
+ </div>
305
+
306
+
307
+ <div id="closed--method" class="method-detail ">
308
+ <a name="M000095"></a>
309
+
310
+ <div class="method-heading">
311
+
312
+ <span class="method-name">closed?</span><span
313
+ class="method-args">()</span>
314
+ <span class="method-click-advice">click to toggle source</span>
315
+
316
+ </div>
317
+
318
+ <div class="method-description">
319
+
320
+ <p class="missing-docs">(Not documented)</p>
321
+
322
+
323
+
324
+ <div class="method-source-code"
325
+ id="closed--source">
326
+ <pre>
327
+ <span class="ruby-comment cmt"># File log4r/outputter/iooutputter.rb, line 23</span>
328
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">closed?</span>
329
+ <span class="ruby-ivar">@out</span>.<span class="ruby-identifier">closed?</span>
330
+ <span class="ruby-keyword kw">end</span></pre>
331
+ </div>
332
+
333
+ </div>
334
+
335
+
336
+ </div>
337
+
338
+
339
+ </div>
340
+
341
+ <div id="private-instance-method-details" class="method-section section">
342
+ <h3 class="section-header">Private Instance Methods</h3>
343
+
344
+
345
+ <div id="write-method" class="method-detail ">
346
+ <a name="M000097"></a>
347
+
348
+ <div class="method-heading">
349
+
350
+ <span class="method-name">write</span><span
351
+ class="method-args">(data)</span>
352
+ <span class="method-click-advice">click to toggle source</span>
353
+
354
+ </div>
355
+
356
+ <div class="method-description">
357
+
358
+ <p>
359
+ perform the write
360
+ </p>
361
+
362
+
363
+
364
+ <div class="method-source-code"
365
+ id="write-source">
366
+ <pre>
367
+ <span class="ruby-comment cmt"># File log4r/outputter/iooutputter.rb, line 40</span>
368
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">data</span>)
369
+ <span class="ruby-keyword kw">begin</span>
370
+ <span class="ruby-ivar">@out</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">data</span>
371
+ <span class="ruby-ivar">@out</span>.<span class="ruby-identifier">flush</span>
372
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">IOError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ioe</span> <span class="ruby-comment cmt"># recover from this instead of crash</span>
373
+ <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">log_internal</span> {<span class="ruby-node">&quot;IOError in Outputter '#{@name}'!&quot;</span>}
374
+ <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">log_internal</span> {<span class="ruby-identifier">ioe</span>}
375
+ <span class="ruby-identifier">close</span>
376
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">NameError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ne</span>
377
+ <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">log_internal</span> {<span class="ruby-node">&quot;Outputter '#{@name}' IO is #{@out.class}!&quot;</span>}
378
+ <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">log_internal</span> {<span class="ruby-identifier">ne</span>}
379
+ <span class="ruby-identifier">close</span>
380
+ <span class="ruby-keyword kw">end</span>
381
+ <span class="ruby-keyword kw">end</span></pre>
382
+ </div>
383
+
384
+ </div>
385
+
386
+
387
+ </div>
388
+
389
+
390
+ </div>
391
+
392
+
393
+ </div>
394
+
395
+
396
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
397
+
398
+ <p>Disabled; run with --debug to generate this.</p>
399
+
400
+ </div>
401
+
402
+ <div id="validator-badges">
403
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
404
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
405
+ Rdoc Generator</a> 1.1.6</small>.</p>
406
+ </div>
407
+
408
+ </body>
409
+ </html>
410
+