log4r 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. data/README +3 -3
  2. data/Rakefile +3 -3
  3. data/doc/rdoc-log4r.css +696 -0
  4. data/examples/syslogcustom.rb +6 -1
  5. data/src/doc/Log4r.html +392 -0
  6. data/src/doc/Log4r/BasicFormatter.html +370 -0
  7. data/src/doc/Log4r/ConfigError.html +207 -0
  8. data/src/doc/Log4r/Configurator.html +1050 -0
  9. data/src/doc/Log4r/DateFileOutputter.html +454 -0
  10. data/src/doc/Log4r/DefaultFormatter.html +205 -0
  11. data/src/doc/Log4r/EmailOutputter.html +636 -0
  12. data/src/doc/Log4r/FileOutputter.html +321 -0
  13. data/src/doc/Log4r/Formatter.html +291 -0
  14. data/src/doc/Log4r/IOOutputter.html +392 -0
  15. data/src/doc/Log4r/Log4rConfig.html +193 -0
  16. data/src/doc/Log4r/Log4rTools.html +370 -0
  17. data/src/doc/Log4r/LogEvent.html +360 -0
  18. data/src/doc/Log4r/LogServer.html +322 -0
  19. data/src/doc/Log4r/Logger.html +1132 -0
  20. data/src/doc/Log4r/Logger/LoggerFactory.html +200 -0
  21. data/src/doc/Log4r/Logger/Repository.html +207 -0
  22. data/src/doc/Log4r/ObjectFormatter.html +262 -0
  23. data/src/doc/Log4r/Outputter.html +910 -0
  24. data/src/doc/Log4r/Outputter/OutputterFactory.html +200 -0
  25. data/src/doc/Log4r/Outputter/consoleoutputters_rb.html +57 -0
  26. data/src/doc/Log4r/Outputter/datefileoutputter_rb.html +93 -0
  27. data/src/doc/Log4r/Outputter/emailoutputter_rb.html +179 -0
  28. data/src/doc/Log4r/Outputter/fileoutputter_rb.html +64 -0
  29. data/src/doc/Log4r/Outputter/iooutputter_rb.html +59 -0
  30. data/src/doc/Log4r/Outputter/outputter_rb.html +222 -0
  31. data/src/doc/Log4r/Outputter/outputterfactory_rb.html +62 -0
  32. data/src/doc/Log4r/Outputter/remoteoutputter_rb.html +59 -0
  33. data/src/doc/Log4r/Outputter/rollingfileoutputter_rb.html +66 -0
  34. data/src/doc/Log4r/Outputter/staticoutputter_rb.html +55 -0
  35. data/src/doc/Log4r/Outputter/syslogoutputter_rb.html +110 -0
  36. data/src/doc/Log4r/Outputter/tst_rb.html +54 -0
  37. data/src/doc/Log4r/PatternFormatter.html +422 -0
  38. data/src/doc/Log4r/ROMPClient.html +193 -0
  39. data/src/doc/Log4r/ROMPServer.html +193 -0
  40. data/src/doc/Log4r/RemoteOutputter.html +384 -0
  41. data/src/doc/Log4r/RollingFileOutputter.html +528 -0
  42. data/src/doc/Log4r/RootLogger.html +512 -0
  43. data/src/doc/Log4r/SimpleFormatter.html +258 -0
  44. data/src/doc/Log4r/StderrOutputter.html +250 -0
  45. data/src/doc/Log4r/StdoutOutputter.html +250 -0
  46. data/src/doc/Log4r/SyslogOutputter.html +533 -0
  47. data/src/doc/Log4r/YamlConfigurator.html +948 -0
  48. data/src/doc/Log4r/base_rb.html +57 -0
  49. data/src/doc/Log4r/config_rb.html +76 -0
  50. data/src/doc/Log4r/configurator_rb.html +370 -0
  51. data/src/doc/Log4r/formatter/formatter_rb.html +121 -0
  52. data/src/doc/Log4r/formatter/patternformatter_rb.html +233 -0
  53. data/src/doc/Log4r/lib/drbloader_rb.html +57 -0
  54. data/src/doc/Log4r/lib/xmlloader_rb.html +57 -0
  55. data/src/doc/Log4r/logevent_rb.html +55 -0
  56. data/src/doc/Log4r/logger_rb.html +293 -0
  57. data/src/doc/Log4r/loggerfactory_rb.html +66 -0
  58. data/src/doc/Log4r/logserver_rb.html +161 -0
  59. data/src/doc/Log4r/rdoc/configurator.html +444 -0
  60. data/src/doc/Log4r/rdoc/emailoutputter.html +261 -0
  61. data/src/doc/Log4r/rdoc/formatter.html +200 -0
  62. data/src/doc/Log4r/rdoc/log4r.html +268 -0
  63. data/src/doc/Log4r/rdoc/logger.html +364 -0
  64. data/src/doc/Log4r/rdoc/logserver.html +247 -0
  65. data/src/doc/Log4r/rdoc/outputter.html +295 -0
  66. data/src/doc/Log4r/rdoc/patternformatter.html +313 -0
  67. data/src/doc/Log4r/rdoc/syslogoutputter.html +179 -0
  68. data/src/doc/Log4r/rdoc/yamlconfigurator.html +169 -0
  69. data/src/doc/Log4r/repository_rb.html +62 -0
  70. data/src/doc/Log4r/staticlogger_rb.html +55 -0
  71. data/src/doc/Log4r/yamlconfigurator_rb.html +95 -0
  72. data/src/doc/REXML.html +193 -0
  73. data/src/doc/created.rid +1 -0
  74. data/src/doc/images/brick.png +0 -0
  75. data/src/doc/images/brick_link.png +0 -0
  76. data/src/doc/images/bug.png +0 -0
  77. data/src/doc/images/bullet_black.png +0 -0
  78. data/src/doc/images/bullet_toggle_minus.png +0 -0
  79. data/src/doc/images/bullet_toggle_plus.png +0 -0
  80. data/src/doc/images/date.png +0 -0
  81. data/src/doc/images/find.png +0 -0
  82. data/src/doc/images/loadingAnimation.gif +0 -0
  83. data/src/doc/images/macFFBgHack.png +0 -0
  84. data/src/doc/images/package.png +0 -0
  85. data/src/doc/images/page_green.png +0 -0
  86. data/src/doc/images/page_white_text.png +0 -0
  87. data/src/doc/images/page_white_width.png +0 -0
  88. data/src/doc/images/plugin.png +0 -0
  89. data/src/doc/images/ruby.png +0 -0
  90. data/src/doc/images/tag_green.png +0 -0
  91. data/src/doc/images/wrench.png +0 -0
  92. data/src/doc/images/wrench_orange.png +0 -0
  93. data/src/doc/images/zoom.png +0 -0
  94. data/src/doc/index.html +384 -0
  95. data/src/doc/js/darkfish.js +116 -0
  96. data/src/doc/js/jquery.js +32 -0
  97. data/src/doc/js/quicksearch.js +114 -0
  98. data/src/doc/js/thickbox-compressed.js +10 -0
  99. data/src/doc/rdoc.css +696 -0
  100. data/src/log4r.rb +2 -2
  101. data/src/log4r/formatter/patternformatter.rb +18 -2
  102. data/src/log4r/logger.rb +2 -2
  103. data/src/log4r/outputter/emailoutputter.rb +2 -0
  104. data/src/log4r/outputter/syslogoutputter.rb +29 -9
  105. data/src/log4r/outputter/tst.rb +8 -0
  106. metadata +99 -3
  107. data/examples/logs/simple.log +0 -1
@@ -0,0 +1,454 @@
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::DateFileOutputter</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/datefileoutputter_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
32
+ class="thickbox" title="log4r/outputter/datefileoutputter.rb">log4r/outputter/datefileoutputter.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">FileOutputter</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="#M000061">::new</a></li>
63
+
64
+ <li><a href="#M000065">#change</a></li>
65
+
66
+ <li><a href="#M000063">#makeNewFilename</a></li>
67
+
68
+ <li><a href="#M000064">#requiresChange</a></li>
69
+
70
+ <li><a href="#M000062">#write</a></li>
71
+
72
+ </ul>
73
+ </div>
74
+
75
+
76
+ <!-- Included Modules -->
77
+
78
+ </div>
79
+
80
+ <div id="project-metadata">
81
+
82
+
83
+ <div id="fileindex-section" class="section project-section">
84
+ <h3 class="section-header">Files</h3>
85
+ <ul>
86
+
87
+ <li class="file"><a href="../log4r/rdoc/configurator.html">configurator</a></li>
88
+
89
+ <li class="file"><a href="../log4r/rdoc/emailoutputter.html">emailoutputter</a></li>
90
+
91
+ <li class="file"><a href="../log4r/rdoc/formatter.html">formatter</a></li>
92
+
93
+ <li class="file"><a href="../log4r/rdoc/log4r.html">log4r</a></li>
94
+
95
+ <li class="file"><a href="../log4r/rdoc/logger.html">logger</a></li>
96
+
97
+ <li class="file"><a href="../log4r/rdoc/logserver.html">logserver</a></li>
98
+
99
+ <li class="file"><a href="../log4r/rdoc/outputter.html">outputter</a></li>
100
+
101
+ <li class="file"><a href="../log4r/rdoc/patternformatter.html">patternformatter</a></li>
102
+
103
+ <li class="file"><a href="../log4r/rdoc/syslogoutputter.html">syslogoutputter</a></li>
104
+
105
+ <li class="file"><a href="../log4r/rdoc/yamlconfigurator.html">yamlconfigurator</a></li>
106
+
107
+ </ul>
108
+ </div>
109
+
110
+
111
+ <div id="classindex-section" class="section project-section">
112
+ <h3 class="section-header">Class Index
113
+ <span class="search-toggle"><img src="../images/find.png"
114
+ height="16" width="16" alt="[+]"
115
+ title="show/hide quicksearch" /></span></h3>
116
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
117
+ <fieldset>
118
+ <legend>Quicksearch</legend>
119
+ <input type="text" name="quicksearch" value=""
120
+ class="quicksearch-field" />
121
+ </fieldset>
122
+ </form>
123
+
124
+ <ul class="link-list">
125
+
126
+ <li><a href="../Log4r.html">Log4r</a></li>
127
+
128
+ <li><a href="../Log4r/BasicFormatter.html">Log4r::BasicFormatter</a></li>
129
+
130
+ <li><a href="../Log4r/ConfigError.html">Log4r::ConfigError</a></li>
131
+
132
+ <li><a href="../Log4r/Configurator.html">Log4r::Configurator</a></li>
133
+
134
+ <li><a href="../Log4r/DateFileOutputter.html">Log4r::DateFileOutputter</a></li>
135
+
136
+ <li><a href="../Log4r/DefaultFormatter.html">Log4r::DefaultFormatter</a></li>
137
+
138
+ <li><a href="../Log4r/EmailOutputter.html">Log4r::EmailOutputter</a></li>
139
+
140
+ <li><a href="../Log4r/FileOutputter.html">Log4r::FileOutputter</a></li>
141
+
142
+ <li><a href="../Log4r/Formatter.html">Log4r::Formatter</a></li>
143
+
144
+ <li><a href="../Log4r/IOOutputter.html">Log4r::IOOutputter</a></li>
145
+
146
+ <li><a href="../Log4r/Log4rTools.html">Log4r::Log4rTools</a></li>
147
+
148
+ <li><a href="../Log4r/LogEvent.html">Log4r::LogEvent</a></li>
149
+
150
+ <li><a href="../Log4r/LogServer.html">Log4r::LogServer</a></li>
151
+
152
+ <li><a href="../Log4r/Logger.html">Log4r::Logger</a></li>
153
+
154
+ <li><a href="../Log4r/ObjectFormatter.html">Log4r::ObjectFormatter</a></li>
155
+
156
+ <li><a href="../Log4r/Outputter.html">Log4r::Outputter</a></li>
157
+
158
+ <li><a href="../Log4r/PatternFormatter.html">Log4r::PatternFormatter</a></li>
159
+
160
+ <li><a href="../Log4r/RemoteOutputter.html">Log4r::RemoteOutputter</a></li>
161
+
162
+ <li><a href="../Log4r/RollingFileOutputter.html">Log4r::RollingFileOutputter</a></li>
163
+
164
+ <li><a href="../Log4r/RootLogger.html">Log4r::RootLogger</a></li>
165
+
166
+ <li><a href="../Log4r/SimpleFormatter.html">Log4r::SimpleFormatter</a></li>
167
+
168
+ <li><a href="../Log4r/StderrOutputter.html">Log4r::StderrOutputter</a></li>
169
+
170
+ <li><a href="../Log4r/StdoutOutputter.html">Log4r::StdoutOutputter</a></li>
171
+
172
+ <li><a href="../Log4r/SyslogOutputter.html">Log4r::SyslogOutputter</a></li>
173
+
174
+ <li><a href="../Log4r/YamlConfigurator.html">Log4r::YamlConfigurator</a></li>
175
+
176
+ </ul>
177
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
178
+ </div>
179
+
180
+
181
+ </div>
182
+ </div>
183
+
184
+ <div id="documentation">
185
+ <h1 class="class">Log4r::DateFileOutputter</h1>
186
+
187
+ <div id="description">
188
+ <p>
189
+ Additional hash arguments are:
190
+ </p>
191
+ <dl>
192
+ <dt><tt>:dirname</tt></dt><dd>Directory of the log file
193
+
194
+ </dd>
195
+ <dt><tt>:date_pattern</tt></dt><dd>Time.strftime format string (default is &#8220;%Y-%m-%d&#8221;)
196
+
197
+ </dd>
198
+ </dl>
199
+
200
+ </div>
201
+
202
+ <!-- Constants -->
203
+
204
+ <div id="constants-list" class="section">
205
+ <h3 class="section-header">Constants</h3>
206
+ <dl>
207
+
208
+ <dt><a name="DEFAULT_DATE_FMT">DEFAULT_DATE_FMT</a></dt>
209
+
210
+ <dd class="description missing-docs">(Not documented)</dd>
211
+
212
+
213
+ </dl>
214
+ </div>
215
+
216
+
217
+ <!-- Attributes -->
218
+
219
+
220
+ <!-- Methods -->
221
+
222
+ <div id="public-class-method-details" class="method-section section">
223
+ <h3 class="section-header">Public Class Methods</h3>
224
+
225
+
226
+ <div id="new-method" class="method-detail ">
227
+ <a name="M000061"></a>
228
+
229
+ <div class="method-heading">
230
+
231
+ <span class="method-name">new</span><span
232
+ class="method-args">(_name, hash={})</span>
233
+ <span class="method-click-advice">click to toggle source</span>
234
+
235
+ </div>
236
+
237
+ <div class="method-description">
238
+
239
+ <p class="missing-docs">(Not documented)</p>
240
+
241
+
242
+
243
+ <div class="method-source-code"
244
+ id="new-source">
245
+ <pre>
246
+ <span class="ruby-comment cmt"># File log4r/outputter/datefileoutputter.rb, line 47</span>
247
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">_name</span>, <span class="ruby-identifier">hash</span>={})
248
+ <span class="ruby-ivar">@DatePattern</span> = (<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:date_pattern</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">hash</span>[<span class="ruby-value str">'date_pattern'</span>] <span class="ruby-keyword kw">or</span>
249
+ <span class="ruby-constant">DEFAULT_DATE_FMT</span>)
250
+ <span class="ruby-ivar">@DateStamp</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">strftime</span>( <span class="ruby-ivar">@DatePattern</span>);
251
+ <span class="ruby-identifier">_dirname</span> = (<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:dirname</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">hash</span>[<span class="ruby-value str">'dirname'</span>])
252
+ <span class="ruby-comment cmt"># hash[:dirname] masks hash[:filename]</span>
253
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_dirname</span>
254
+ <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">_dirname</span>)
255
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">StandardError</span>, <span class="ruby-node">&quot;'#{_dirname}' must be a valid directory&quot;</span>, <span class="ruby-identifier">caller</span>
256
+ <span class="ruby-keyword kw">end</span>
257
+ <span class="ruby-ivar">@filebase</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">$0</span>, <span class="ruby-value str">'.rb'</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;.log&quot;</span>
258
+ <span class="ruby-keyword kw">else</span>
259
+ <span class="ruby-ivar">@filebase</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>((<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:filename</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">hash</span>[<span class="ruby-value str">'filename'</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-value str">&quot;&quot;</span>))
260
+ <span class="ruby-keyword kw">end</span>
261
+ <span class="ruby-identifier">hash</span>[<span class="ruby-value str">'filename'</span>] = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">_dirname</span>,
262
+ <span class="ruby-ivar">@filebase</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/(\.\w*)$/</span>, <span class="ruby-node">&quot;_#{@DateStamp}&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'\1'</span>))
263
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">_name</span>, <span class="ruby-identifier">hash</span>)
264
+ <span class="ruby-keyword kw">end</span></pre>
265
+ </div>
266
+
267
+ </div>
268
+
269
+
270
+ </div>
271
+
272
+
273
+ </div>
274
+
275
+ <div id="private-instance-method-details" class="method-section section">
276
+ <h3 class="section-header">Private Instance Methods</h3>
277
+
278
+
279
+ <div id="change-method" class="method-detail ">
280
+ <a name="M000065"></a>
281
+
282
+ <div class="method-heading">
283
+
284
+ <span class="method-name">change</span><span
285
+ class="method-args">()</span>
286
+ <span class="method-click-advice">click to toggle source</span>
287
+
288
+ </div>
289
+
290
+ <div class="method-description">
291
+
292
+ <p>
293
+ change the file
294
+ </p>
295
+
296
+
297
+
298
+ <div class="method-source-code"
299
+ id="change-source">
300
+ <pre>
301
+ <span class="ruby-comment cmt"># File log4r/outputter/datefileoutputter.rb, line 94</span>
302
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change</span>
303
+ <span class="ruby-keyword kw">begin</span>
304
+ <span class="ruby-ivar">@out</span>.<span class="ruby-identifier">close</span>
305
+ <span class="ruby-keyword kw">rescue</span>
306
+ <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">log_internal</span> {
307
+ <span class="ruby-node">&quot;DateFileOutputter '#{@name}' could not close #{@filename}&quot;</span>
308
+ }
309
+ <span class="ruby-keyword kw">end</span>
310
+ <span class="ruby-identifier">makeNewFilename</span>
311
+ <span class="ruby-ivar">@out</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@filename</span>, (<span class="ruby-ivar">@trunc</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;w&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;a&quot;</span>))
312
+ <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">log_internal</span> {
313
+ <span class="ruby-node">&quot;DateFileOutputter '#{@name}' now writing to #{@filename}&quot;</span>
314
+ }
315
+ <span class="ruby-keyword kw">end</span></pre>
316
+ </div>
317
+
318
+ </div>
319
+
320
+
321
+ </div>
322
+
323
+
324
+ <div id="make-ew-ilename-method" class="method-detail ">
325
+ <a name="M000063"></a>
326
+
327
+ <div class="method-heading">
328
+
329
+ <span class="method-name">makeNewFilename</span><span
330
+ class="method-args">()</span>
331
+ <span class="method-click-advice">click to toggle source</span>
332
+
333
+ </div>
334
+
335
+ <div class="method-description">
336
+
337
+ <p>
338
+ construct a new filename from the DateStamp
339
+ </p>
340
+
341
+
342
+
343
+ <div class="method-source-code"
344
+ id="make-ew-ilename-source">
345
+ <pre>
346
+ <span class="ruby-comment cmt"># File log4r/outputter/datefileoutputter.rb, line 77</span>
347
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">makeNewFilename</span>
348
+ <span class="ruby-ivar">@DateStamp</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">strftime</span>( <span class="ruby-ivar">@DatePattern</span>);
349
+ <span class="ruby-ivar">@filename</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-ivar">@filename</span>),
350
+ <span class="ruby-ivar">@filebase</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/(\.\w*)$/</span>, <span class="ruby-node">&quot;_#{@DateStamp}&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'\1'</span>))
351
+ <span class="ruby-keyword kw">end</span></pre>
352
+ </div>
353
+
354
+ </div>
355
+
356
+
357
+ </div>
358
+
359
+
360
+ <div id="requires-hange-method" class="method-detail ">
361
+ <a name="M000064"></a>
362
+
363
+ <div class="method-heading">
364
+
365
+ <span class="method-name">requiresChange</span><span
366
+ class="method-args">()</span>
367
+ <span class="method-click-advice">click to toggle source</span>
368
+
369
+ </div>
370
+
371
+ <div class="method-description">
372
+
373
+ <p>
374
+ does the file require a change?
375
+ </p>
376
+
377
+
378
+
379
+ <div class="method-source-code"
380
+ id="requires-hange-source">
381
+ <pre>
382
+ <span class="ruby-comment cmt"># File log4r/outputter/datefileoutputter.rb, line 84</span>
383
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">requiresChange</span>
384
+ <span class="ruby-identifier">_DateStamp</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">strftime</span>( <span class="ruby-ivar">@DatePattern</span>);
385
+ <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">_DateStamp</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@DateStamp</span>
386
+ <span class="ruby-ivar">@DateStamp</span> = <span class="ruby-identifier">_DateStamp</span>
387
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
388
+ <span class="ruby-keyword kw">end</span>
389
+ <span class="ruby-keyword kw">false</span>
390
+ <span class="ruby-keyword kw">end</span></pre>
391
+ </div>
392
+
393
+ </div>
394
+
395
+
396
+ </div>
397
+
398
+
399
+ <div id="write-method" class="method-detail ">
400
+ <a name="M000062"></a>
401
+
402
+ <div class="method-heading">
403
+
404
+ <span class="method-name">write</span><span
405
+ class="method-args">(data)</span>
406
+ <span class="method-click-advice">click to toggle source</span>
407
+
408
+ </div>
409
+
410
+ <div class="method-description">
411
+
412
+ <p>
413
+ perform the write
414
+ </p>
415
+
416
+
417
+
418
+ <div class="method-source-code"
419
+ id="write-source">
420
+ <pre>
421
+ <span class="ruby-comment cmt"># File log4r/outputter/datefileoutputter.rb, line 71</span>
422
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">data</span>)
423
+ <span class="ruby-identifier">change</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">requiresChange</span>
424
+ <span class="ruby-keyword kw">super</span>
425
+ <span class="ruby-keyword kw">end</span></pre>
426
+ </div>
427
+
428
+ </div>
429
+
430
+
431
+ </div>
432
+
433
+
434
+ </div>
435
+
436
+
437
+ </div>
438
+
439
+
440
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
441
+
442
+ <p>Disabled; run with --debug to generate this.</p>
443
+
444
+ </div>
445
+
446
+ <div id="validator-badges">
447
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
448
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
449
+ Rdoc Generator</a> 1.1.6</small>.</p>
450
+ </div>
451
+
452
+ </body>
453
+ </html>
454
+