log4r 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +3 -3
- data/Rakefile +2 -2
- data/doc/rdoc/Log4r.html +519 -0
- data/doc/rdoc/Log4r/BasicFormatter.html +388 -0
- data/doc/rdoc/Log4r/ConfigError.html +225 -0
- data/doc/rdoc/Log4r/Configurator.html +1068 -0
- data/doc/rdoc/Log4r/DateFileOutputter.html +479 -0
- data/doc/rdoc/Log4r/DefaultFormatter.html +223 -0
- data/doc/rdoc/Log4r/EmailOutputter.html +654 -0
- data/doc/rdoc/Log4r/FileOutputter.html +346 -0
- data/doc/rdoc/Log4r/Formatter.html +309 -0
- data/doc/rdoc/Log4r/GDC.html +346 -0
- data/doc/rdoc/Log4r/GDC_rb.html +80 -0
- data/doc/rdoc/Log4r/IOOutputter.html +410 -0
- data/doc/rdoc/Log4r/Log4jXmlFormatter.html +337 -0
- data/doc/rdoc/Log4r/Log4rConfig.html +211 -0
- data/doc/rdoc/Log4r/Log4rTools.html +388 -0
- data/doc/rdoc/Log4r/LogEvent.html +378 -0
- data/doc/rdoc/Log4r/LogServer.html +340 -0
- data/doc/rdoc/Log4r/Logger.html +1150 -0
- data/doc/rdoc/Log4r/Logger/LoggerFactory.html +218 -0
- data/doc/rdoc/Log4r/Logger/Repository.html +225 -0
- data/doc/rdoc/Log4r/MDC.html +424 -0
- data/doc/rdoc/Log4r/MDC_rb.html +83 -0
- data/doc/rdoc/Log4r/NDC.html +632 -0
- data/doc/rdoc/Log4r/NDC_rb.html +110 -0
- data/doc/rdoc/Log4r/ObjectFormatter.html +280 -0
- data/doc/rdoc/Log4r/Outputter.html +934 -0
- data/doc/rdoc/Log4r/Outputter/OutputterFactory.html +218 -0
- data/doc/rdoc/Log4r/Outputter/consoleoutputters_rb.html +57 -0
- data/doc/rdoc/Log4r/Outputter/datefileoutputter_rb.html +93 -0
- data/doc/rdoc/Log4r/Outputter/emailoutputter_rb.html +179 -0
- data/doc/rdoc/Log4r/Outputter/fileoutputter_rb.html +64 -0
- data/doc/rdoc/Log4r/Outputter/iooutputter_rb.html +59 -0
- data/doc/rdoc/Log4r/Outputter/outputter_rb.html +222 -0
- data/doc/rdoc/Log4r/Outputter/outputterfactory_rb.html +62 -0
- data/doc/rdoc/Log4r/Outputter/remoteoutputter_rb.html +59 -0
- data/doc/rdoc/Log4r/Outputter/rollingfileoutputter_rb.html +66 -0
- data/doc/rdoc/Log4r/Outputter/staticoutputter_rb.html +55 -0
- data/doc/rdoc/Log4r/Outputter/syslogoutputter_rb.html +110 -0
- data/doc/rdoc/Log4r/Outputter/udpoutputter_rb.html +220 -0
- data/doc/rdoc/Log4r/PatternFormatter.html +404 -0
- data/doc/rdoc/Log4r/ROMPClient.html +211 -0
- data/doc/rdoc/Log4r/ROMPServer.html +211 -0
- data/doc/rdoc/Log4r/RemoteOutputter.html +402 -0
- data/doc/rdoc/Log4r/RollingFileOutputter.html +551 -0
- data/doc/rdoc/Log4r/RootLogger.html +530 -0
- data/doc/rdoc/Log4r/SimpleFormatter.html +276 -0
- data/doc/rdoc/Log4r/StderrOutputter.html +268 -0
- data/doc/rdoc/Log4r/StdoutOutputter.html +268 -0
- data/doc/rdoc/Log4r/SyslogOutputter.html +551 -0
- data/doc/rdoc/Log4r/UDPOutputter.html +379 -0
- data/doc/rdoc/Log4r/YamlConfigurator.html +966 -0
- data/doc/rdoc/Log4r/base_rb.html +57 -0
- data/doc/rdoc/Log4r/config_rb.html +122 -0
- data/doc/rdoc/Log4r/configurator_rb.html +370 -0
- data/doc/rdoc/Log4r/formatter/formatter_rb.html +121 -0
- data/doc/rdoc/Log4r/formatter/log4jxmlformatter_rb.html +64 -0
- data/doc/rdoc/Log4r/formatter/patternformatter_rb.html +239 -0
- data/doc/rdoc/Log4r/lib/drbloader_rb.html +57 -0
- data/doc/rdoc/Log4r/lib/xmlloader_rb.html +57 -0
- data/doc/rdoc/Log4r/logevent_rb.html +55 -0
- data/doc/rdoc/Log4r/logger_rb.html +293 -0
- data/doc/rdoc/Log4r/loggerfactory_rb.html +66 -0
- data/doc/rdoc/Log4r/logserver_rb.html +161 -0
- data/doc/rdoc/Log4r/rdoc/GDC.html +175 -0
- data/doc/rdoc/Log4r/rdoc/MDC.html +178 -0
- data/doc/rdoc/Log4r/rdoc/NDC.html +207 -0
- data/doc/rdoc/Log4r/rdoc/configurator.html +462 -0
- data/doc/rdoc/Log4r/rdoc/emailoutputter.html +279 -0
- data/doc/rdoc/Log4r/rdoc/formatter.html +218 -0
- data/doc/rdoc/Log4r/rdoc/log4r.html +286 -0
- data/doc/rdoc/Log4r/rdoc/logger.html +382 -0
- data/doc/rdoc/Log4r/rdoc/logserver.html +265 -0
- data/doc/rdoc/Log4r/rdoc/outputter.html +313 -0
- data/doc/rdoc/Log4r/rdoc/patternformatter.html +331 -0
- data/doc/rdoc/Log4r/rdoc/syslogoutputter.html +197 -0
- data/doc/rdoc/Log4r/rdoc/win32eventoutputter.html +165 -0
- data/doc/rdoc/Log4r/rdoc/yamlconfigurator.html +187 -0
- data/doc/rdoc/Log4r/repository_rb.html +74 -0
- data/doc/rdoc/Log4r/staticlogger_rb.html +55 -0
- data/doc/rdoc/Log4r/yamlconfigurator_rb.html +95 -0
- data/doc/rdoc/REXML.html +211 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/images/brick.png +0 -0
- data/doc/rdoc/images/brick_link.png +0 -0
- data/doc/rdoc/images/bug.png +0 -0
- data/doc/rdoc/images/bullet_black.png +0 -0
- data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
- data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
- data/doc/rdoc/images/date.png +0 -0
- data/doc/rdoc/images/find.png +0 -0
- data/doc/rdoc/images/loadingAnimation.gif +0 -0
- data/doc/rdoc/images/macFFBgHack.png +0 -0
- data/doc/rdoc/images/package.png +0 -0
- data/doc/rdoc/images/page_green.png +0 -0
- data/doc/rdoc/images/page_white_text.png +0 -0
- data/doc/rdoc/images/page_white_width.png +0 -0
- data/doc/rdoc/images/plugin.png +0 -0
- data/doc/rdoc/images/ruby.png +0 -0
- data/doc/rdoc/images/tag_green.png +0 -0
- data/doc/rdoc/images/wrench.png +0 -0
- data/doc/rdoc/images/wrench_orange.png +0 -0
- data/doc/rdoc/images/zoom.png +0 -0
- data/doc/rdoc/index.html +585 -0
- data/doc/rdoc/js/darkfish.js +116 -0
- data/doc/rdoc/js/jquery.js +32 -0
- data/doc/rdoc/js/quicksearch.js +114 -0
- data/doc/rdoc/js/thickbox-compressed.js +10 -0
- data/doc/rdoc/log4r-rdoc.css +696 -0
- data/doc/rdoc/log4r_rb.html +207 -0
- data/doc/rdoc/rdoc.css +696 -0
- data/examples/rdoc-gen +2 -0
- data/src/log4r.rb +2 -2
- data/src/log4r/formatter/patternformatter.rb +15 -15
- data/src/log4r/outputter/udpoutputter.rb +4 -4
- data/tests/testchainsaw.rb +1 -1
- metadata +123 -8
- data/src/log4r/outputter/datefileoutputter.patch +0 -24
- data/src/log4r/outputter/diff +0 -14
- data/src/log4r/outputter/new-datefileoutputter.rb +0 -117
@@ -0,0 +1,404 @@
|
|
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::PatternFormatter</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/formatter/patternformatter_rb.html?TB_iframe=true&height=550&width=785"
|
32
|
+
class="thickbox" title="log4r/formatter/patternformatter.rb">log4r/formatter/patternformatter.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">BasicFormatter</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="#M000038">::new</a></li>
|
63
|
+
|
64
|
+
</ul>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
<!-- Included Modules -->
|
69
|
+
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<div id="project-metadata">
|
73
|
+
|
74
|
+
|
75
|
+
<div id="fileindex-section" class="section project-section">
|
76
|
+
<h3 class="section-header">Files</h3>
|
77
|
+
<ul>
|
78
|
+
|
79
|
+
<li class="file"><a href="../log4r/rdoc/GDC.html">GDC</a></li>
|
80
|
+
|
81
|
+
<li class="file"><a href="../log4r/rdoc/MDC.html">MDC</a></li>
|
82
|
+
|
83
|
+
<li class="file"><a href="../log4r/rdoc/NDC.html">NDC</a></li>
|
84
|
+
|
85
|
+
<li class="file"><a href="../log4r/rdoc/configurator.html">configurator</a></li>
|
86
|
+
|
87
|
+
<li class="file"><a href="../log4r/rdoc/emailoutputter.html">emailoutputter</a></li>
|
88
|
+
|
89
|
+
<li class="file"><a href="../log4r/rdoc/formatter.html">formatter</a></li>
|
90
|
+
|
91
|
+
<li class="file"><a href="../log4r/rdoc/log4r.html">log4r</a></li>
|
92
|
+
|
93
|
+
<li class="file"><a href="../log4r/rdoc/logger.html">logger</a></li>
|
94
|
+
|
95
|
+
<li class="file"><a href="../log4r/rdoc/logserver.html">logserver</a></li>
|
96
|
+
|
97
|
+
<li class="file"><a href="../log4r/rdoc/outputter.html">outputter</a></li>
|
98
|
+
|
99
|
+
<li class="file"><a href="../log4r/rdoc/patternformatter.html">patternformatter</a></li>
|
100
|
+
|
101
|
+
<li class="file"><a href="../log4r/rdoc/syslogoutputter.html">syslogoutputter</a></li>
|
102
|
+
|
103
|
+
<li class="file"><a href="../log4r/rdoc/win32eventoutputter.html">win32eventoutputter</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/GDC.html">Log4r::GDC</a></li>
|
145
|
+
|
146
|
+
<li><a href="../Log4r/IOOutputter.html">Log4r::IOOutputter</a></li>
|
147
|
+
|
148
|
+
<li><a href="../Log4r/Log4jXmlFormatter.html">Log4r::Log4jXmlFormatter</a></li>
|
149
|
+
|
150
|
+
<li><a href="../Log4r/Log4rTools.html">Log4r::Log4rTools</a></li>
|
151
|
+
|
152
|
+
<li><a href="../Log4r/LogEvent.html">Log4r::LogEvent</a></li>
|
153
|
+
|
154
|
+
<li><a href="../Log4r/LogServer.html">Log4r::LogServer</a></li>
|
155
|
+
|
156
|
+
<li><a href="../Log4r/Logger.html">Log4r::Logger</a></li>
|
157
|
+
|
158
|
+
<li><a href="../Log4r/MDC.html">Log4r::MDC</a></li>
|
159
|
+
|
160
|
+
<li><a href="../Log4r/NDC.html">Log4r::NDC</a></li>
|
161
|
+
|
162
|
+
<li><a href="../Log4r/ObjectFormatter.html">Log4r::ObjectFormatter</a></li>
|
163
|
+
|
164
|
+
<li><a href="../Log4r/Outputter.html">Log4r::Outputter</a></li>
|
165
|
+
|
166
|
+
<li><a href="../Log4r/PatternFormatter.html">Log4r::PatternFormatter</a></li>
|
167
|
+
|
168
|
+
<li><a href="../Log4r/RemoteOutputter.html">Log4r::RemoteOutputter</a></li>
|
169
|
+
|
170
|
+
<li><a href="../Log4r/RollingFileOutputter.html">Log4r::RollingFileOutputter</a></li>
|
171
|
+
|
172
|
+
<li><a href="../Log4r/RootLogger.html">Log4r::RootLogger</a></li>
|
173
|
+
|
174
|
+
<li><a href="../Log4r/SimpleFormatter.html">Log4r::SimpleFormatter</a></li>
|
175
|
+
|
176
|
+
<li><a href="../Log4r/StderrOutputter.html">Log4r::StderrOutputter</a></li>
|
177
|
+
|
178
|
+
<li><a href="../Log4r/StdoutOutputter.html">Log4r::StdoutOutputter</a></li>
|
179
|
+
|
180
|
+
<li><a href="../Log4r/SyslogOutputter.html">Log4r::SyslogOutputter</a></li>
|
181
|
+
|
182
|
+
<li><a href="../Log4r/UDPOutputter.html">Log4r::UDPOutputter</a></li>
|
183
|
+
|
184
|
+
<li><a href="../Log4r/YamlConfigurator.html">Log4r::YamlConfigurator</a></li>
|
185
|
+
|
186
|
+
</ul>
|
187
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
188
|
+
</div>
|
189
|
+
|
190
|
+
|
191
|
+
</div>
|
192
|
+
</div>
|
193
|
+
|
194
|
+
<div id="documentation">
|
195
|
+
<h1 class="class">Log4r::PatternFormatter</h1>
|
196
|
+
|
197
|
+
<div id="description">
|
198
|
+
<p>
|
199
|
+
See <a
|
200
|
+
href="../log4r/formatter/patternformatter_rb.html">log4r/formatter/patternformatter.rb</a>
|
201
|
+
</p>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
<!-- Constants -->
|
206
|
+
|
207
|
+
<div id="constants-list" class="section">
|
208
|
+
<h3 class="section-header">Constants</h3>
|
209
|
+
<dl>
|
210
|
+
|
211
|
+
<dt><a name="DirectiveTable">DirectiveTable</a></dt>
|
212
|
+
|
213
|
+
<dd class="description"><p>
|
214
|
+
Arguments to sprintf keyed to directive letters<br> %c - event short
|
215
|
+
name<br> %C - event fullname<br> %d - date<br> %g - Global Diagnostic
|
216
|
+
Context (<a href="GDC.html">GDC</a>)<br> %t - trace<br> %m - message<br> %h
|
217
|
+
- thread name<br> %p - process ID aka PID<br> %M - formatted message<br> %l
|
218
|
+
- Level in string form<br> %x - Nested Diagnostic Context (<a
|
219
|
+
href="NDC.html">NDC</a>)<br> %X - Mapped Diagnostic Context (<a
|
220
|
+
href="MDC.html">MDC</a>), syntax is “%X{key}”<br> %% - Insert a
|
221
|
+
%<br>
|
222
|
+
</p></dd>
|
223
|
+
|
224
|
+
|
225
|
+
<dt><a name="DirectiveRegexp">DirectiveRegexp</a></dt>
|
226
|
+
|
227
|
+
<dd class="description"><p>
|
228
|
+
Matches the first directive encountered and the stuff around it.
|
229
|
+
</p>
|
230
|
+
<ul>
|
231
|
+
<li>$1 is the stuff before directive or “” if not applicable
|
232
|
+
|
233
|
+
</li>
|
234
|
+
<li>$2 is the directive group or nil if there’s none
|
235
|
+
|
236
|
+
</li>
|
237
|
+
<li>$3 is the %#.# match within directive group
|
238
|
+
|
239
|
+
</li>
|
240
|
+
<li>$4 is the .# match which we don’t use (it’s there to match
|
241
|
+
properly)
|
242
|
+
|
243
|
+
</li>
|
244
|
+
<li>$5 is the directive letter
|
245
|
+
|
246
|
+
</li>
|
247
|
+
<li>$6 is the stuff after the directive or “” if not applicable
|
248
|
+
|
249
|
+
</li>
|
250
|
+
</ul></dd>
|
251
|
+
|
252
|
+
|
253
|
+
<dt><a name="ISO8601">ISO8601</a></dt>
|
254
|
+
|
255
|
+
<dd class="description"><p>
|
256
|
+
default date format
|
257
|
+
</p></dd>
|
258
|
+
|
259
|
+
|
260
|
+
</dl>
|
261
|
+
</div>
|
262
|
+
|
263
|
+
|
264
|
+
<!-- Attributes -->
|
265
|
+
|
266
|
+
<div id="attribute-method-details" class="method-section section">
|
267
|
+
<h3 class="section-header">Attributes</h3>
|
268
|
+
|
269
|
+
|
270
|
+
<div id="pattern-attribute-method" class="method-detail">
|
271
|
+
<a name="pattern"></a>
|
272
|
+
|
273
|
+
<div class="method-heading attribute-method-heading">
|
274
|
+
<span class="method-name">pattern</span><span
|
275
|
+
class="attribute-access-type">[R]</span>
|
276
|
+
</div>
|
277
|
+
|
278
|
+
<div class="method-description">
|
279
|
+
|
280
|
+
<p class="missing-docs">(Not documented)</p>
|
281
|
+
|
282
|
+
</div>
|
283
|
+
</div>
|
284
|
+
|
285
|
+
<div id="date-pattern-attribute-method" class="method-detail">
|
286
|
+
<a name="date_pattern"></a>
|
287
|
+
|
288
|
+
<div class="method-heading attribute-method-heading">
|
289
|
+
<span class="method-name">date_pattern</span><span
|
290
|
+
class="attribute-access-type">[R]</span>
|
291
|
+
</div>
|
292
|
+
|
293
|
+
<div class="method-description">
|
294
|
+
|
295
|
+
<p class="missing-docs">(Not documented)</p>
|
296
|
+
|
297
|
+
</div>
|
298
|
+
</div>
|
299
|
+
|
300
|
+
<div id="date-method-attribute-method" class="method-detail">
|
301
|
+
<a name="date_method"></a>
|
302
|
+
|
303
|
+
<div class="method-heading attribute-method-heading">
|
304
|
+
<span class="method-name">date_method</span><span
|
305
|
+
class="attribute-access-type">[R]</span>
|
306
|
+
</div>
|
307
|
+
|
308
|
+
<div class="method-description">
|
309
|
+
|
310
|
+
<p class="missing-docs">(Not documented)</p>
|
311
|
+
|
312
|
+
</div>
|
313
|
+
</div>
|
314
|
+
|
315
|
+
</div>
|
316
|
+
|
317
|
+
|
318
|
+
<!-- Methods -->
|
319
|
+
|
320
|
+
<div id="public-class-method-details" class="method-section section">
|
321
|
+
<h3 class="section-header">Public Class Methods</h3>
|
322
|
+
|
323
|
+
|
324
|
+
<div id="new-method" class="method-detail ">
|
325
|
+
<a name="M000038"></a>
|
326
|
+
|
327
|
+
<div class="method-heading">
|
328
|
+
|
329
|
+
<span class="method-name">new</span><span
|
330
|
+
class="method-args">(hash={})</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
|
+
Accepts the following hash arguments (either a string or a symbol):
|
339
|
+
</p>
|
340
|
+
<dl>
|
341
|
+
<dt><tt>pattern</tt></dt><dd>A pattern format string.
|
342
|
+
|
343
|
+
</dd>
|
344
|
+
<dt><tt><a href="PatternFormatter.html#date_pattern">date_pattern</a></tt></dt><dd>A Time#strftime format string. See the Ruby Time class for details.
|
345
|
+
|
346
|
+
</dd>
|
347
|
+
<dt><tt><a href="PatternFormatter.html#date_method">date_method</a></tt></dt><dd>As an option to <a
|
348
|
+
href="PatternFormatter.html#date_pattern">date_pattern</a>, specify which
|
349
|
+
Time.now method to call. For example, <tt>usec</tt> or <tt>to_s</tt>.
|
350
|
+
Specify it as a String or Symbol.
|
351
|
+
|
352
|
+
</dd>
|
353
|
+
</dl>
|
354
|
+
<p>
|
355
|
+
The default date format is <a
|
356
|
+
href="PatternFormatter.html#ISO8601">ISO8601</a>, which looks like this:
|
357
|
+
</p>
|
358
|
+
<pre>
|
359
|
+
yyyy-mm-dd hh:mm:ss => 2001-01-12 13:15:50
|
360
|
+
</pre>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
<div class="method-source-code"
|
365
|
+
id="new-source">
|
366
|
+
<pre>
|
367
|
+
<span class="ruby-comment cmt"># File log4r/formatter/patternformatter.rb, line 77</span>
|
368
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">hash</span>={})
|
369
|
+
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">hash</span>)
|
370
|
+
<span class="ruby-ivar">@pattern</span> = (<span class="ruby-identifier">hash</span>[<span class="ruby-value str">'pattern'</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:pattern</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">nil</span>)
|
371
|
+
<span class="ruby-ivar">@date_pattern</span> = (<span class="ruby-identifier">hash</span>[<span class="ruby-value str">'date_pattern'</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:date_pattern</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">nil</span>)
|
372
|
+
<span class="ruby-ivar">@date_method</span> = (<span class="ruby-identifier">hash</span>[<span class="ruby-value str">'date_method'</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:date_method</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">nil</span>)
|
373
|
+
<span class="ruby-ivar">@date_pattern</span> = <span class="ruby-constant">ISO8601</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@date_pattern</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@date_method</span>.<span class="ruby-identifier">nil?</span>
|
374
|
+
<span class="ruby-constant">PatternFormatter</span>.<span class="ruby-identifier">create_format_methods</span>(<span class="ruby-keyword kw">self</span>)
|
375
|
+
<span class="ruby-keyword kw">end</span></pre>
|
376
|
+
</div>
|
377
|
+
|
378
|
+
</div>
|
379
|
+
|
380
|
+
|
381
|
+
</div>
|
382
|
+
|
383
|
+
|
384
|
+
</div>
|
385
|
+
|
386
|
+
|
387
|
+
</div>
|
388
|
+
|
389
|
+
|
390
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
391
|
+
|
392
|
+
<p>Disabled; run with --debug to generate this.</p>
|
393
|
+
|
394
|
+
</div>
|
395
|
+
|
396
|
+
<div id="validator-badges">
|
397
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
398
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
399
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
400
|
+
</div>
|
401
|
+
|
402
|
+
</body>
|
403
|
+
</html>
|
404
|
+
|
@@ -0,0 +1,211 @@
|
|
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>Module: Log4r::ROMPClient</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="module">
|
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/lib/drbloader_rb.html?TB_iframe=true&height=550&width=785"
|
32
|
+
class="thickbox" title="log4r/lib/drbloader.rb">log4r/lib/drbloader.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
|
+
|
46
|
+
<!-- Namespace Contents -->
|
47
|
+
|
48
|
+
|
49
|
+
<!-- Method Quickref -->
|
50
|
+
|
51
|
+
|
52
|
+
<!-- Included Modules -->
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<div id="project-metadata">
|
57
|
+
|
58
|
+
|
59
|
+
<div id="fileindex-section" class="section project-section">
|
60
|
+
<h3 class="section-header">Files</h3>
|
61
|
+
<ul>
|
62
|
+
|
63
|
+
<li class="file"><a href="../log4r/rdoc/GDC.html">GDC</a></li>
|
64
|
+
|
65
|
+
<li class="file"><a href="../log4r/rdoc/MDC.html">MDC</a></li>
|
66
|
+
|
67
|
+
<li class="file"><a href="../log4r/rdoc/NDC.html">NDC</a></li>
|
68
|
+
|
69
|
+
<li class="file"><a href="../log4r/rdoc/configurator.html">configurator</a></li>
|
70
|
+
|
71
|
+
<li class="file"><a href="../log4r/rdoc/emailoutputter.html">emailoutputter</a></li>
|
72
|
+
|
73
|
+
<li class="file"><a href="../log4r/rdoc/formatter.html">formatter</a></li>
|
74
|
+
|
75
|
+
<li class="file"><a href="../log4r/rdoc/log4r.html">log4r</a></li>
|
76
|
+
|
77
|
+
<li class="file"><a href="../log4r/rdoc/logger.html">logger</a></li>
|
78
|
+
|
79
|
+
<li class="file"><a href="../log4r/rdoc/logserver.html">logserver</a></li>
|
80
|
+
|
81
|
+
<li class="file"><a href="../log4r/rdoc/outputter.html">outputter</a></li>
|
82
|
+
|
83
|
+
<li class="file"><a href="../log4r/rdoc/patternformatter.html">patternformatter</a></li>
|
84
|
+
|
85
|
+
<li class="file"><a href="../log4r/rdoc/syslogoutputter.html">syslogoutputter</a></li>
|
86
|
+
|
87
|
+
<li class="file"><a href="../log4r/rdoc/win32eventoutputter.html">win32eventoutputter</a></li>
|
88
|
+
|
89
|
+
<li class="file"><a href="../log4r/rdoc/yamlconfigurator.html">yamlconfigurator</a></li>
|
90
|
+
|
91
|
+
</ul>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
|
95
|
+
<div id="classindex-section" class="section project-section">
|
96
|
+
<h3 class="section-header">Class Index
|
97
|
+
<span class="search-toggle"><img src="../images/find.png"
|
98
|
+
height="16" width="16" alt="[+]"
|
99
|
+
title="show/hide quicksearch" /></span></h3>
|
100
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
101
|
+
<fieldset>
|
102
|
+
<legend>Quicksearch</legend>
|
103
|
+
<input type="text" name="quicksearch" value=""
|
104
|
+
class="quicksearch-field" />
|
105
|
+
</fieldset>
|
106
|
+
</form>
|
107
|
+
|
108
|
+
<ul class="link-list">
|
109
|
+
|
110
|
+
<li><a href="../Log4r.html">Log4r</a></li>
|
111
|
+
|
112
|
+
<li><a href="../Log4r/BasicFormatter.html">Log4r::BasicFormatter</a></li>
|
113
|
+
|
114
|
+
<li><a href="../Log4r/ConfigError.html">Log4r::ConfigError</a></li>
|
115
|
+
|
116
|
+
<li><a href="../Log4r/Configurator.html">Log4r::Configurator</a></li>
|
117
|
+
|
118
|
+
<li><a href="../Log4r/DateFileOutputter.html">Log4r::DateFileOutputter</a></li>
|
119
|
+
|
120
|
+
<li><a href="../Log4r/DefaultFormatter.html">Log4r::DefaultFormatter</a></li>
|
121
|
+
|
122
|
+
<li><a href="../Log4r/EmailOutputter.html">Log4r::EmailOutputter</a></li>
|
123
|
+
|
124
|
+
<li><a href="../Log4r/FileOutputter.html">Log4r::FileOutputter</a></li>
|
125
|
+
|
126
|
+
<li><a href="../Log4r/Formatter.html">Log4r::Formatter</a></li>
|
127
|
+
|
128
|
+
<li><a href="../Log4r/GDC.html">Log4r::GDC</a></li>
|
129
|
+
|
130
|
+
<li><a href="../Log4r/IOOutputter.html">Log4r::IOOutputter</a></li>
|
131
|
+
|
132
|
+
<li><a href="../Log4r/Log4jXmlFormatter.html">Log4r::Log4jXmlFormatter</a></li>
|
133
|
+
|
134
|
+
<li><a href="../Log4r/Log4rTools.html">Log4r::Log4rTools</a></li>
|
135
|
+
|
136
|
+
<li><a href="../Log4r/LogEvent.html">Log4r::LogEvent</a></li>
|
137
|
+
|
138
|
+
<li><a href="../Log4r/LogServer.html">Log4r::LogServer</a></li>
|
139
|
+
|
140
|
+
<li><a href="../Log4r/Logger.html">Log4r::Logger</a></li>
|
141
|
+
|
142
|
+
<li><a href="../Log4r/MDC.html">Log4r::MDC</a></li>
|
143
|
+
|
144
|
+
<li><a href="../Log4r/NDC.html">Log4r::NDC</a></li>
|
145
|
+
|
146
|
+
<li><a href="../Log4r/ObjectFormatter.html">Log4r::ObjectFormatter</a></li>
|
147
|
+
|
148
|
+
<li><a href="../Log4r/Outputter.html">Log4r::Outputter</a></li>
|
149
|
+
|
150
|
+
<li><a href="../Log4r/PatternFormatter.html">Log4r::PatternFormatter</a></li>
|
151
|
+
|
152
|
+
<li><a href="../Log4r/RemoteOutputter.html">Log4r::RemoteOutputter</a></li>
|
153
|
+
|
154
|
+
<li><a href="../Log4r/RollingFileOutputter.html">Log4r::RollingFileOutputter</a></li>
|
155
|
+
|
156
|
+
<li><a href="../Log4r/RootLogger.html">Log4r::RootLogger</a></li>
|
157
|
+
|
158
|
+
<li><a href="../Log4r/SimpleFormatter.html">Log4r::SimpleFormatter</a></li>
|
159
|
+
|
160
|
+
<li><a href="../Log4r/StderrOutputter.html">Log4r::StderrOutputter</a></li>
|
161
|
+
|
162
|
+
<li><a href="../Log4r/StdoutOutputter.html">Log4r::StdoutOutputter</a></li>
|
163
|
+
|
164
|
+
<li><a href="../Log4r/SyslogOutputter.html">Log4r::SyslogOutputter</a></li>
|
165
|
+
|
166
|
+
<li><a href="../Log4r/UDPOutputter.html">Log4r::UDPOutputter</a></li>
|
167
|
+
|
168
|
+
<li><a href="../Log4r/YamlConfigurator.html">Log4r::YamlConfigurator</a></li>
|
169
|
+
|
170
|
+
</ul>
|
171
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
|
175
|
+
</div>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
<div id="documentation">
|
179
|
+
<h1 class="module">Log4r::ROMPClient</h1>
|
180
|
+
|
181
|
+
<div id="description">
|
182
|
+
|
183
|
+
</div>
|
184
|
+
|
185
|
+
<!-- Constants -->
|
186
|
+
|
187
|
+
|
188
|
+
<!-- Attributes -->
|
189
|
+
|
190
|
+
|
191
|
+
<!-- Methods -->
|
192
|
+
|
193
|
+
|
194
|
+
</div>
|
195
|
+
|
196
|
+
|
197
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
198
|
+
|
199
|
+
<p>Disabled; run with --debug to generate this.</p>
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<div id="validator-badges">
|
204
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
205
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
206
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
207
|
+
</div>
|
208
|
+
|
209
|
+
</body>
|
210
|
+
</html>
|
211
|
+
|