eymiha_util 1.0.2 → 1.0.3
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/gem_package.rb +1 -2
- data/lib/eymiha_util.rb +1 -0
- metadata +6 -91
- data/html/classes/Eymiha.html +0 -151
- data/html/classes/Eymiha/BaseEnvelope.html +0 -204
- data/html/classes/Eymiha/BaseEnvelope.src/M000015.html +0 -18
- data/html/classes/Eymiha/BaseEnvelope.src/M000016.html +0 -20
- data/html/classes/Eymiha/BaseEnvelope.src/M000017.html +0 -18
- data/html/classes/Eymiha/EasyLog.html +0 -273
- data/html/classes/Eymiha/EasyLog.src/M000001.html +0 -20
- data/html/classes/Eymiha/EasyLog.src/M000002.html +0 -18
- data/html/classes/Eymiha/EasyLog.src/M000003.html +0 -18
- data/html/classes/Eymiha/EasyLog.src/M000004.html +0 -18
- data/html/classes/Eymiha/EasyLog.src/M000005.html +0 -18
- data/html/classes/Eymiha/EasyLogFormatter.html +0 -192
- data/html/classes/Eymiha/EasyLogFormatter.src/M000018.html +0 -21
- data/html/classes/Eymiha/EasyLogFormatter.src/M000019.html +0 -18
- data/html/classes/Eymiha/EasyLogFormatter.src/M000020.html +0 -20
- data/html/classes/Eymiha/EasyLogger.html +0 -247
- data/html/classes/Eymiha/EasyLogger.src/M000024.html +0 -22
- data/html/classes/Eymiha/EasyLogger.src/M000025.html +0 -18
- data/html/classes/Eymiha/EasyLogger.src/M000026.html +0 -18
- data/html/classes/Eymiha/EasyLogger.src/M000027.html +0 -18
- data/html/classes/Eymiha/Enum.html +0 -111
- data/html/classes/Eymiha/Envelope.html +0 -329
- data/html/classes/Eymiha/Envelope.src/M000037.html +0 -19
- data/html/classes/Eymiha/Envelope.src/M000038.html +0 -19
- data/html/classes/Eymiha/Envelope.src/M000039.html +0 -35
- data/html/classes/Eymiha/Envelope.src/M000040.html +0 -19
- data/html/classes/Eymiha/Envelope.src/M000041.html +0 -19
- data/html/classes/Eymiha/Envelope.src/M000042.html +0 -26
- data/html/classes/Eymiha/Envelope.src/M000044.html +0 -18
- data/html/classes/Eymiha/EnvelopeException.html +0 -119
- data/html/classes/Eymiha/ForwardReference.html +0 -204
- data/html/classes/Eymiha/ForwardReference.src/M000045.html +0 -21
- data/html/classes/Eymiha/ForwardReference.src/M000046.html +0 -18
- data/html/classes/Eymiha/ForwardReferencer.html +0 -181
- data/html/classes/Eymiha/ForwardReferencing.html +0 -320
- data/html/classes/Eymiha/ForwardReferencing.src/M000006.html +0 -20
- data/html/classes/Eymiha/ForwardReferencing.src/M000007.html +0 -20
- data/html/classes/Eymiha/ForwardReferencing.src/M000008.html +0 -20
- data/html/classes/Eymiha/ForwardReferencing.src/M000009.html +0 -32
- data/html/classes/Eymiha/ForwardReferencing.src/M000010.html +0 -18
- data/html/classes/Eymiha/ForwardReferencing.src/M000011.html +0 -25
- data/html/classes/Eymiha/ForwardReferencing.src/M000012.html +0 -18
- data/html/classes/Eymiha/ForwardReferencing.src/M000013.html +0 -18
- data/html/classes/Eymiha/ForwardReferencing.src/M000014.html +0 -18
- data/html/classes/Eymiha/Histogram.html +0 -325
- data/html/classes/Eymiha/Histogram.src/M000028.html +0 -19
- data/html/classes/Eymiha/Histogram.src/M000029.html +0 -21
- data/html/classes/Eymiha/Histogram.src/M000030.html +0 -37
- data/html/classes/Eymiha/Histogram.src/M000031.html +0 -18
- data/html/classes/Eymiha/Histogram.src/M000032.html +0 -20
- data/html/classes/Eymiha/Histogram.src/M000033.html +0 -20
- data/html/classes/Eymiha/Histogram.src/M000034.html +0 -20
- data/html/classes/Eymiha/Histogram.src/M000035.html +0 -20
- data/html/classes/Eymiha/Histogram.src/M000036.html +0 -24
- data/html/classes/Eymiha/HistogramException.html +0 -118
- data/html/classes/Eymiha/MethodicHash.html +0 -222
- data/html/classes/Eymiha/MethodicHash.src/M000021.html +0 -22
- data/html/classes/Eymiha/MethodicHash.src/M000022.html +0 -23
- data/html/classes/Eymiha/MethodicHash.src/M000023.html +0 -23
- data/html/created.rid +0 -1
- data/html/files/lib/eymiha/util/easylog_rb.html +0 -116
- data/html/files/lib/eymiha/util/enum_rb.html +0 -123
- data/html/files/lib/eymiha/util/envelope_rb.html +0 -109
- data/html/files/lib/eymiha/util/forward_referencing_rb.html +0 -118
- data/html/files/lib/eymiha/util/histogram_rb.html +0 -109
- data/html/files/lib/eymiha/util/methodic_hash_rb.html +0 -101
- data/html/files/lib/eymiha/util_rb.html +0 -113
- data/html/fr_class_index.html +0 -40
- data/html/fr_file_index.html +0 -33
- data/html/fr_method_index.html +0 -72
- data/html/index.html +0 -24
- data/html/rdoc-style.css +0 -208
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>raise_no_envelope (Eymiha::BaseEnvelope)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/util/envelope.rb, line 20</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">raise_no_envelope</span>
|
|
15
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">EnvelopeException</span>, <span class="ruby-value str">"No values are enveloped"</span>
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>raise_no_compare (Eymiha::BaseEnvelope)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/util/envelope.rb, line 26</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">raise_no_compare</span>(<span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>)
|
|
15
|
-
<span class="ruby-identifier">value</span> = <span class="ruby-node">"'#{value}' "</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
|
16
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">EnvelopeException</span>,
|
|
17
|
-
<span class="ruby-node">"The value #{value}cannot be compared with the envelope"</span>
|
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>new (Eymiha::BaseEnvelope)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/util/envelope.rb, line 36</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
|
15
|
-
<span class="ruby-ivar">@count</span> = <span class="ruby-value">0</span>
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
-
<head>
|
|
8
|
-
<title>Module: Eymiha::EasyLog</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
// <![CDATA[
|
|
14
|
-
|
|
15
|
-
function popupCode( url ) {
|
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function toggleCode( id ) {
|
|
20
|
-
if ( document.getElementById )
|
|
21
|
-
elem = document.getElementById( id );
|
|
22
|
-
else if ( document.all )
|
|
23
|
-
elem = eval( "document.all." + id );
|
|
24
|
-
else
|
|
25
|
-
return false;
|
|
26
|
-
|
|
27
|
-
elemStyle = elem.style;
|
|
28
|
-
|
|
29
|
-
if ( elemStyle.display != "block" ) {
|
|
30
|
-
elemStyle.display = "block"
|
|
31
|
-
} else {
|
|
32
|
-
elemStyle.display = "none"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Make codeblocks hidden by default
|
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
-
|
|
41
|
-
// ]]>
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
</head>
|
|
45
|
-
<body>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div id="classHeader">
|
|
50
|
-
<table class="header-table">
|
|
51
|
-
<tr class="top-aligned-row">
|
|
52
|
-
<td><strong>Module</strong></td>
|
|
53
|
-
<td class="class-name-in-header">Eymiha::EasyLog</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr class="top-aligned-row">
|
|
56
|
-
<td><strong>In:</strong></td>
|
|
57
|
-
<td>
|
|
58
|
-
<a href="../../files/lib/eymiha/util/easylog_rb.html">
|
|
59
|
-
lib/eymiha/util/easylog.rb
|
|
60
|
-
</a>
|
|
61
|
-
<br />
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
|
|
65
|
-
</table>
|
|
66
|
-
</div>
|
|
67
|
-
<!-- banner header -->
|
|
68
|
-
|
|
69
|
-
<div id="bodyContent">
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<div id="contextContent">
|
|
74
|
-
|
|
75
|
-
<div id="description">
|
|
76
|
-
<p>
|
|
77
|
-
<a href="EasyLog.html">EasyLog</a> is a quick and convenient way to
|
|
78
|
-
implement logging in Ruby code. By requiring the eymiha/util/easylog code,
|
|
79
|
-
Easylog is included into module and is subsequently available to all
|
|
80
|
-
classes.
|
|
81
|
-
</p>
|
|
82
|
-
<p>
|
|
83
|
-
There is a natural flow to <a href="EasyLog.html">EasyLog</a> logging.
|
|
84
|
-
First logging is started somewhere on high
|
|
85
|
-
</p>
|
|
86
|
-
<pre>
|
|
87
|
-
start_logging filename
|
|
88
|
-
</pre>
|
|
89
|
-
<p>
|
|
90
|
-
then messages are written to the log with the appropriate severity (here an
|
|
91
|
-
informational message is logged)
|
|
92
|
-
</p>
|
|
93
|
-
<pre>
|
|
94
|
-
log_info "something happened: #{foo}"
|
|
95
|
-
</pre>
|
|
96
|
-
<p>
|
|
97
|
-
and optionally, when finished,
|
|
98
|
-
</p>
|
|
99
|
-
<pre>
|
|
100
|
-
finish_logging
|
|
101
|
-
</pre>
|
|
102
|
-
<p>
|
|
103
|
-
The upshot is that logging can be done from anywhere, and is as simple and
|
|
104
|
-
easy as possible.
|
|
105
|
-
</p>
|
|
106
|
-
<p>
|
|
107
|
-
The module builds five methods for <a href="EasyLog.html">EasyLog</a>
|
|
108
|
-
logging corresponding to the five Logger severities: log_debug, log_info,
|
|
109
|
-
log_warn, log_error and log_fatal. Their arguments are a message to be
|
|
110
|
-
logged, and optionally one or more EasyLoggers that will be the targets of
|
|
111
|
-
the message.
|
|
112
|
-
</p>
|
|
113
|
-
<p>
|
|
114
|
-
Note the classify attribute of an <a href="EasyLogger.html">EasyLogger</a>
|
|
115
|
-
stores the decision about adding the class name to the end of the message
|
|
116
|
-
or not; by default it is true and class names are added.
|
|
117
|
-
</p>
|
|
118
|
-
<pre>
|
|
119
|
-
easylogger.classify = false
|
|
120
|
-
</pre>
|
|
121
|
-
<p>
|
|
122
|
-
will turn this off.
|
|
123
|
-
</p>
|
|
124
|
-
<p>
|
|
125
|
-
Two other convenience methods for each of the five Logger severities are
|
|
126
|
-
also provided for checking and adjusting <a href="EasyLog.html">EasyLog</a>
|
|
127
|
-
threshold levels. The log_debug?, log_info?, log_warn?, log_error? and
|
|
128
|
-
log_fatal? methods return true if a message at that level will be reported.
|
|
129
|
-
Respectively, the log_level_debug, log_level_info, log_level_warn,
|
|
130
|
-
log_level_error and log_level_fatal methods will set the threshold to pass
|
|
131
|
-
only messages at or above the selected severity.
|
|
132
|
-
</p>
|
|
133
|
-
|
|
134
|
-
</div>
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
</div>
|
|
138
|
-
|
|
139
|
-
<div id="method-list">
|
|
140
|
-
<h3 class="section-bar">Methods</h3>
|
|
141
|
-
|
|
142
|
-
<div class="name-list">
|
|
143
|
-
<a href="#M000003">change_easylogger</a>
|
|
144
|
-
<a href="#M000002">easylogger</a>
|
|
145
|
-
<a href="#M000004">finish_logging</a>
|
|
146
|
-
<a href="#M000005">log_level</a>
|
|
147
|
-
<a href="#M000001">start_logging</a>
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
|
|
151
|
-
</div>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<!-- if includes -->
|
|
155
|
-
|
|
156
|
-
<div id="section">
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
<!-- if method_list -->
|
|
166
|
-
<div id="methods">
|
|
167
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
|
168
|
-
|
|
169
|
-
<div id="method-M000003" class="method-detail">
|
|
170
|
-
<a name="M000003"></a>
|
|
171
|
-
|
|
172
|
-
<div class="method-heading">
|
|
173
|
-
<a href="EasyLog.src/M000003.html" target="Code" class="method-signature"
|
|
174
|
-
onclick="popupCode('EasyLog.src/M000003.html');return false;">
|
|
175
|
-
<span class="method-name">change_easylogger</span><span class="method-args">(easylogger)</span>
|
|
176
|
-
</a>
|
|
177
|
-
</div>
|
|
178
|
-
|
|
179
|
-
<div class="method-description">
|
|
180
|
-
<p>
|
|
181
|
-
Changes the <a href="EasyLogger.html">EasyLogger</a> used for <a
|
|
182
|
-
href="EasyLog.html">EasyLog</a> logging to the given <a
|
|
183
|
-
href="EasyLogger.html">EasyLogger</a>.
|
|
184
|
-
</p>
|
|
185
|
-
</div>
|
|
186
|
-
</div>
|
|
187
|
-
|
|
188
|
-
<div id="method-M000002" class="method-detail">
|
|
189
|
-
<a name="M000002"></a>
|
|
190
|
-
|
|
191
|
-
<div class="method-heading">
|
|
192
|
-
<a href="EasyLog.src/M000002.html" target="Code" class="method-signature"
|
|
193
|
-
onclick="popupCode('EasyLog.src/M000002.html');return false;">
|
|
194
|
-
<span class="method-name">easylogger</span><span class="method-args">()</span>
|
|
195
|
-
</a>
|
|
196
|
-
</div>
|
|
197
|
-
|
|
198
|
-
<div class="method-description">
|
|
199
|
-
<p>
|
|
200
|
-
Returns the <a href="EasyLogger.html">EasyLogger</a> that is being used for
|
|
201
|
-
<a href="EasyLog.html">EasyLog</a> logging.
|
|
202
|
-
</p>
|
|
203
|
-
</div>
|
|
204
|
-
</div>
|
|
205
|
-
|
|
206
|
-
<div id="method-M000004" class="method-detail">
|
|
207
|
-
<a name="M000004"></a>
|
|
208
|
-
|
|
209
|
-
<div class="method-heading">
|
|
210
|
-
<a href="EasyLog.src/M000004.html" target="Code" class="method-signature"
|
|
211
|
-
onclick="popupCode('EasyLog.src/M000004.html');return false;">
|
|
212
|
-
<span class="method-name">finish_logging</span><span class="method-args">()</span>
|
|
213
|
-
</a>
|
|
214
|
-
</div>
|
|
215
|
-
|
|
216
|
-
<div class="method-description">
|
|
217
|
-
<p>
|
|
218
|
-
Turns off <a href="EasyLog.html">EasyLog</a> logging until restarted.
|
|
219
|
-
</p>
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
|
-
|
|
223
|
-
<div id="method-M000005" class="method-detail">
|
|
224
|
-
<a name="M000005"></a>
|
|
225
|
-
|
|
226
|
-
<div class="method-heading">
|
|
227
|
-
<a href="EasyLog.src/M000005.html" target="Code" class="method-signature"
|
|
228
|
-
onclick="popupCode('EasyLog.src/M000005.html');return false;">
|
|
229
|
-
<span class="method-name">log_level</span><span class="method-args">()</span>
|
|
230
|
-
</a>
|
|
231
|
-
</div>
|
|
232
|
-
|
|
233
|
-
<div class="method-description">
|
|
234
|
-
<p>
|
|
235
|
-
Returns the threshold of the <a href="EasyLog.html">EasyLog</a>, or nil if
|
|
236
|
-
no Easylogger is set.
|
|
237
|
-
</p>
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
240
|
-
|
|
241
|
-
<div id="method-M000001" class="method-detail">
|
|
242
|
-
<a name="M000001"></a>
|
|
243
|
-
|
|
244
|
-
<div class="method-heading">
|
|
245
|
-
<a href="EasyLog.src/M000001.html" target="Code" class="method-signature"
|
|
246
|
-
onclick="popupCode('EasyLog.src/M000001.html');return false;">
|
|
247
|
-
<span class="method-name">start_logging</span><span class="method-args">(logdev, shift_age = 'weekly', shift_size = 1048576,
|
|
248
|
subsecond_precision = nil)</span>
|
|
249
|
-
</a>
|
|
250
|
-
</div>
|
|
251
|
-
|
|
252
|
-
<div class="method-description">
|
|
253
|
-
<p>
|
|
254
|
-
Creates a new <a href="EasyLogger.html">EasyLogger</a> instance with the
|
|
255
|
-
given arguments, and uses it for all subsequent <a
|
|
256
|
-
href="EasyLog.html">EasyLog</a> logging. The arguments are the same as used
|
|
257
|
-
in <a href="EasyLogger.html">EasyLogger</a> creation.
|
|
258
|
-
</p>
|
|
259
|
-
</div>
|
|
260
|
-
</div>
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
</div>
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
</div>
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
<div id="validator-badges">
|
|
270
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
271
|
-
</div>
|
|
272
|
-
|
|
273
|
-
</body>
|
|
274
|
-
</html>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>start_logging (Eymiha::EasyLog)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/util/easylog.rb, line 169</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_logging</span>(<span class="ruby-identifier">logdev</span>, <span class="ruby-identifier">shift_age</span> = <span class="ruby-value str">'weekly'</span>, <span class="ruby-identifier">shift_size</span> = <span class="ruby-value">1048576</span>,
|
|
15
|
-
<span class="ruby-identifier">subsecond_precision</span> = <span class="ruby-keyword kw">nil</span>)
|
|
16
|
-
<span class="ruby-constant">EasyLogger</span>.<span class="ruby-identifier">finish_logging</span>
|
|
17
|
-
<span class="ruby-constant">EasyLogger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">logdev</span>, <span class="ruby-identifier">shift_age</span>, <span class="ruby-identifier">shift_size</span>, <span class="ruby-identifier">subsecond_precision</span>)
|
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>easylogger (Eymiha::EasyLog)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/util/easylog.rb, line 176</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">easylogger</span>
|
|
15
|
-
<span class="ruby-constant">EasyLogger</span>.<span class="ruby-identifier">default_logger</span>
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>change_easylogger (Eymiha::EasyLog)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/util/easylog.rb, line 181</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change_easylogger</span>(<span class="ruby-identifier">easylogger</span>)
|
|
15
|
-
<span class="ruby-constant">EasyLogger</span>.<span class="ruby-identifier">change_logger</span>(<span class="ruby-identifier">easylogger</span>)
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>finish_logging (Eymiha::EasyLog)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/util/easylog.rb, line 186</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">finish_logging</span>
|
|
15
|
-
<span class="ruby-constant">EasyLogger</span>.<span class="ruby-identifier">finish_logging</span>
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html>
|
|
7
|
-
<head>
|
|
8
|
-
<title>log_level (Eymiha::EasyLog)</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
-
</head>
|
|
12
|
-
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha/util/easylog.rb, line 191</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_level</span>
|
|
15
|
-
<span class="ruby-constant">EasyLogger</span>.<span class="ruby-identifier">level</span>
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
-
<head>
|
|
8
|
-
<title>Class: Eymiha::EasyLogFormatter</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
// <![CDATA[
|
|
14
|
-
|
|
15
|
-
function popupCode( url ) {
|
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function toggleCode( id ) {
|
|
20
|
-
if ( document.getElementById )
|
|
21
|
-
elem = document.getElementById( id );
|
|
22
|
-
else if ( document.all )
|
|
23
|
-
elem = eval( "document.all." + id );
|
|
24
|
-
else
|
|
25
|
-
return false;
|
|
26
|
-
|
|
27
|
-
elemStyle = elem.style;
|
|
28
|
-
|
|
29
|
-
if ( elemStyle.display != "block" ) {
|
|
30
|
-
elemStyle.display = "block"
|
|
31
|
-
} else {
|
|
32
|
-
elemStyle.display = "none"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Make codeblocks hidden by default
|
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
-
|
|
41
|
-
// ]]>
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
</head>
|
|
45
|
-
<body>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div id="classHeader">
|
|
50
|
-
<table class="header-table">
|
|
51
|
-
<tr class="top-aligned-row">
|
|
52
|
-
<td><strong>Class</strong></td>
|
|
53
|
-
<td class="class-name-in-header">Eymiha::EasyLogFormatter</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr class="top-aligned-row">
|
|
56
|
-
<td><strong>In:</strong></td>
|
|
57
|
-
<td>
|
|
58
|
-
<a href="../../files/lib/eymiha/util/easylog_rb.html">
|
|
59
|
-
lib/eymiha/util/easylog.rb
|
|
60
|
-
</a>
|
|
61
|
-
<br />
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
|
|
65
|
-
<tr class="top-aligned-row">
|
|
66
|
-
<td><strong>Parent:</strong></td>
|
|
67
|
-
<td>
|
|
68
|
-
Logger::Formatter
|
|
69
|
-
</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</table>
|
|
72
|
-
</div>
|
|
73
|
-
<!-- banner header -->
|
|
74
|
-
|
|
75
|
-
<div id="bodyContent">
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<div id="contextContent">
|
|
80
|
-
|
|
81
|
-
<div id="description">
|
|
82
|
-
<p>
|
|
83
|
-
<a href="EasyLogFormatter.html">EasyLogFormatter</a> instances are used to
|
|
84
|
-
format logging messages generated by the <a
|
|
85
|
-
href="EasyLogger.html">EasyLogger</a> class. They consist of a date-time
|
|
86
|
-
stamp, the severity and a log message.
|
|
87
|
-
</p>
|
|
88
|
-
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
</div>
|
|
93
|
-
|
|
94
|
-
<div id="method-list">
|
|
95
|
-
<h3 class="section-bar">Methods</h3>
|
|
96
|
-
|
|
97
|
-
<div class="name-list">
|
|
98
|
-
<a href="#M000020">call</a>
|
|
99
|
-
<a href="#M000019">format_datetime</a>
|
|
100
|
-
<a href="#M000018">new</a>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<!-- if includes -->
|
|
108
|
-
|
|
109
|
-
<div id="section">
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<!-- if method_list -->
|
|
119
|
-
<div id="methods">
|
|
120
|
-
<h3 class="section-bar">Public Class methods</h3>
|
|
121
|
-
|
|
122
|
-
<div id="method-M000018" class="method-detail">
|
|
123
|
-
<a name="M000018"></a>
|
|
124
|
-
|
|
125
|
-
<div class="method-heading">
|
|
126
|
-
<a href="EasyLogFormatter.src/M000018.html" target="Code" class="method-signature"
|
|
127
|
-
onclick="popupCode('EasyLogFormatter.src/M000018.html');return false;">
|
|
128
|
-
<span class="method-name">new</span><span class="method-args">(subsecond_precision = nil)</span>
|
|
129
|
-
</a>
|
|
130
|
-
</div>
|
|
131
|
-
|
|
132
|
-
<div class="method-description">
|
|
133
|
-
<p>
|
|
134
|
-
Creates an instance, using the specified subsecond precision to format
|
|
135
|
-
fractional seconds. If nil, the calculated subsecond precision of the Time
|
|
136
|
-
class is used.
|
|
137
|
-
</p>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
|
142
|
-
|
|
143
|
-
<div id="method-M000020" class="method-detail">
|
|
144
|
-
<a name="M000020"></a>
|
|
145
|
-
|
|
146
|
-
<div class="method-heading">
|
|
147
|
-
<a href="EasyLogFormatter.src/M000020.html" target="Code" class="method-signature"
|
|
148
|
-
onclick="popupCode('EasyLogFormatter.src/M000020.html');return false;">
|
|
149
|
-
<span class="method-name">call</span><span class="method-args">(severity, time, progname, msg)</span>
|
|
150
|
-
</a>
|
|
151
|
-
</div>
|
|
152
|
-
|
|
153
|
-
<div class="method-description">
|
|
154
|
-
<p>
|
|
155
|
-
Returns a String containing a formatted log entry consisting of the given
|
|
156
|
-
date-time stamp, severity and log message.
|
|
157
|
-
</p>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
|
|
161
|
-
<div id="method-M000019" class="method-detail">
|
|
162
|
-
<a name="M000019"></a>
|
|
163
|
-
|
|
164
|
-
<div class="method-heading">
|
|
165
|
-
<a href="EasyLogFormatter.src/M000019.html" target="Code" class="method-signature"
|
|
166
|
-
onclick="popupCode('EasyLogFormatter.src/M000019.html');return false;">
|
|
167
|
-
<span class="method-name">format_datetime</span><span class="method-args">(time)</span>
|
|
168
|
-
</a>
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
<div class="method-description">
|
|
172
|
-
<p>
|
|
173
|
-
Returns a String containing a date-time stamp for the given time in
|
|
174
|
-
month/day/year hour:minute:second.microsecond format with the microsecond
|
|
175
|
-
part having the precision specified when the instance was created.
|
|
176
|
-
</p>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
</div>
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
</div>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
<div id="validator-badges">
|
|
188
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
189
|
-
</div>
|
|
190
|
-
|
|
191
|
-
</body>
|
|
192
|
-
</html>
|