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,21 +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::EasyLogFormatter)</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 15</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">subsecond_precision</span> = <span class="ruby-keyword kw">nil</span>)
|
|
15
|
-
<span class="ruby-keyword kw">super</span>()
|
|
16
|
-
<span class="ruby-ivar">@AppLogFormat</span> = <span class="ruby-value str">"%s %-5s %s\n"</span>
|
|
17
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">datetime_format</span> = <span class="ruby-value str">"%m/%d/%y %H:%M:%S."</span>
|
|
18
|
-
<span class="ruby-ivar">@usecs</span> = <span class="ruby-identifier">subsecond_precision</span> <span class="ruby-operator">||</span> <span class="ruby-constant">Time</span>.<span class="ruby-identifier">subsecond_precision</span>
|
|
19
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
20
|
-
</body>
|
|
21
|
-
</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>format_datetime (Eymiha::EasyLogFormatter)</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 25</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">format_datetime</span>(<span class="ruby-identifier">time</span>)
|
|
15
|
-
<span class="ruby-identifier">time</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-identifier">datetime_format</span>) <span class="ruby-operator"><<</span> (<span class="ruby-value str">"%06d"</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">time</span>.<span class="ruby-identifier">usec</span>)[<span class="ruby-value">0</span>,<span class="ruby-ivar">@usecs</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>call (Eymiha::EasyLogFormatter)</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 31</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">severity</span>, <span class="ruby-identifier">time</span>, <span class="ruby-identifier">progname</span>, <span class="ruby-identifier">msg</span>)
|
|
15
|
-
(<span class="ruby-identifier">msg</span> <span class="ruby-operator">==</span> <span class="ruby-value str">""</span>) <span class="ruby-operator">?</span>
|
|
16
|
-
<span class="ruby-value str">"\n"</span> <span class="ruby-operator">:</span>
|
|
17
|
-
(<span class="ruby-ivar">@AppLogFormat</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">format_datetime</span>(<span class="ruby-identifier">time</span>), <span class="ruby-identifier">severity</span>, <span class="ruby-identifier">msg2str</span>(<span class="ruby-identifier">msg</span>)])
|
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
|
@@ -1,247 +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::EasyLogger</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::EasyLogger</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
|
|
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
|
-
Primarily, <a href="EasyLogger.html">EasyLogger</a> provides a convienient
|
|
84
|
-
interface to the Logger at the class <a
|
|
85
|
-
href="EasyLogger.html#M000027">level</a>. The class contains a
|
|
86
|
-
"default" instance of Logger to which the class methods send
|
|
87
|
-
their log messages. By convention, the first instance created is made the
|
|
88
|
-
default, however this can be changed. Of course, instances may be used
|
|
89
|
-
directly for logging if desired. Instances format their log entries using
|
|
90
|
-
an <a href="EasyLogFormatter.html">EasyLogFormatter</a>.
|
|
91
|
-
</p>
|
|
92
|
-
<p>
|
|
93
|
-
Five class methods are built that have the same names as the instance
|
|
94
|
-
methods: debug, info, warn, error and fatal. Their arguments are different,
|
|
95
|
-
however, being the message to be logged and optionally, one or more Loggers
|
|
96
|
-
to log the message. If no Loggers are passed, the default is used, and if
|
|
97
|
-
that is nil,no logging takes place.
|
|
98
|
-
</p>
|
|
99
|
-
<p>
|
|
100
|
-
Two other convenience class methods for each of the five Logger severities
|
|
101
|
-
are also provided for checking and adjusting the threshold levels of the
|
|
102
|
-
default logger. The debug?, info?, warn?, error? and fatal? methods return
|
|
103
|
-
true if a message at that <a href="EasyLogger.html#M000027">level</a> will
|
|
104
|
-
be reported by the default logger. Respectively, the level_debug,
|
|
105
|
-
level_info, level_warn, level_error and level_fatal methods will set the
|
|
106
|
-
threshold of the default logger to pass only messages at or above the
|
|
107
|
-
selected severity.
|
|
108
|
-
</p>
|
|
109
|
-
|
|
110
|
-
</div>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
</div>
|
|
114
|
-
|
|
115
|
-
<div id="method-list">
|
|
116
|
-
<h3 class="section-bar">Methods</h3>
|
|
117
|
-
|
|
118
|
-
<div class="name-list">
|
|
119
|
-
<a href="#M000025">change_logger</a>
|
|
120
|
-
<a href="#M000026">finish_logging</a>
|
|
121
|
-
<a href="#M000027">level</a>
|
|
122
|
-
<a href="#M000024">new</a>
|
|
123
|
-
</div>
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
</div>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
<!-- if includes -->
|
|
130
|
-
|
|
131
|
-
<div id="section">
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
<div id="attribute-list">
|
|
138
|
-
<h3 class="section-bar">Attributes</h3>
|
|
139
|
-
|
|
140
|
-
<div class="name-list">
|
|
141
|
-
<table>
|
|
142
|
-
<tr class="top-aligned-row context-row">
|
|
143
|
-
<td class="context-item-name">classify</td>
|
|
144
|
-
<td class="context-item-value"> [RW] </td>
|
|
145
|
-
<td class="context-item-desc"></td>
|
|
146
|
-
</tr>
|
|
147
|
-
</table>
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
<!-- if method_list -->
|
|
154
|
-
<div id="methods">
|
|
155
|
-
<h3 class="section-bar">Public Class methods</h3>
|
|
156
|
-
|
|
157
|
-
<div id="method-M000025" class="method-detail">
|
|
158
|
-
<a name="M000025"></a>
|
|
159
|
-
|
|
160
|
-
<div class="method-heading">
|
|
161
|
-
<a href="EasyLogger.src/M000025.html" target="Code" class="method-signature"
|
|
162
|
-
onclick="popupCode('EasyLogger.src/M000025.html');return false;">
|
|
163
|
-
<span class="method-name">change_logger</span><span class="method-args">(logger)</span>
|
|
164
|
-
</a>
|
|
165
|
-
</div>
|
|
166
|
-
|
|
167
|
-
<div class="method-description">
|
|
168
|
-
<p>
|
|
169
|
-
Changes the default logger to the given logger.
|
|
170
|
-
</p>
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
|
|
174
|
-
<div id="method-M000026" class="method-detail">
|
|
175
|
-
<a name="M000026"></a>
|
|
176
|
-
|
|
177
|
-
<div class="method-heading">
|
|
178
|
-
<a href="EasyLogger.src/M000026.html" target="Code" class="method-signature"
|
|
179
|
-
onclick="popupCode('EasyLogger.src/M000026.html');return false;">
|
|
180
|
-
<span class="method-name">finish_logging</span><span class="method-args">()</span>
|
|
181
|
-
</a>
|
|
182
|
-
</div>
|
|
183
|
-
|
|
184
|
-
<div class="method-description">
|
|
185
|
-
<p>
|
|
186
|
-
Sets the default logger to nil, indicating that further logging by the
|
|
187
|
-
class through the default logger mechanism is disabled.
|
|
188
|
-
</p>
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
|
|
192
|
-
<div id="method-M000027" class="method-detail">
|
|
193
|
-
<a name="M000027"></a>
|
|
194
|
-
|
|
195
|
-
<div class="method-heading">
|
|
196
|
-
<a href="EasyLogger.src/M000027.html" target="Code" class="method-signature"
|
|
197
|
-
onclick="popupCode('EasyLogger.src/M000027.html');return false;">
|
|
198
|
-
<span class="method-name">level</span><span class="method-args">()</span>
|
|
199
|
-
</a>
|
|
200
|
-
</div>
|
|
201
|
-
|
|
202
|
-
<div class="method-description">
|
|
203
|
-
<p>
|
|
204
|
-
Returns the threshold of the default logger if it exists, otherwise nil.
|
|
205
|
-
</p>
|
|
206
|
-
</div>
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
|
-
<div id="method-M000024" class="method-detail">
|
|
210
|
-
<a name="M000024"></a>
|
|
211
|
-
|
|
212
|
-
<div class="method-heading">
|
|
213
|
-
<a href="EasyLogger.src/M000024.html" target="Code" class="method-signature"
|
|
214
|
-
onclick="popupCode('EasyLogger.src/M000024.html');return false;">
|
|
215
|
-
<span class="method-name">new</span><span class="method-args">(logdev, shift_age = 'weekly', shift_size = 1048576,
|
|
216
|
subsecond_precision = nil)</span>
|
|
217
|
-
</a>
|
|
218
|
-
</div>
|
|
219
|
-
|
|
220
|
-
<div class="method-description">
|
|
221
|
-
<p>
|
|
222
|
-
Creates a <a href="EasyLogger.html#M000024">new</a> <a
|
|
223
|
-
href="EasyLogger.html">EasyLogger</a> instance. Logging is recorded through
|
|
224
|
-
the given logdev, either an IO stream or to a file when logdev is a String
|
|
225
|
-
containing its filename. Shift age is either the number of log files to
|
|
226
|
-
keep, or the frequency of rotation. Shift size is the maximum logfile size,
|
|
227
|
-
applicable when shift age is a number. Subsecond precision is the number of
|
|
228
|
-
decimal places that express fractional seconds. If this is the first
|
|
229
|
-
instance being created, it is remembered and used by the logging methods at
|
|
230
|
-
the class <a href="EasyLogger.html#M000027">level</a> as the default
|
|
231
|
-
logger.
|
|
232
|
-
</p>
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
</div>
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
</div>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
<div id="validator-badges">
|
|
244
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
245
|
-
</div>
|
|
246
|
-
|
|
247
|
-
</body>
|
|
248
|
-
</html>
|
|
@@ -1,22 +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::EasyLogger)</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 72</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</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-keyword kw">super</span>(<span class="ruby-identifier">logdev</span>, <span class="ruby-identifier">shift_age</span>, <span class="ruby-identifier">shift_size</span>)
|
|
17
|
-
<span class="ruby-ivar">@formatter</span> = <span class="ruby-constant">EasyLogFormatter</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">subsecond_precision</span>)
|
|
18
|
-
<span class="ruby-ivar">@classify</span> = <span class="ruby-keyword kw">true</span>
|
|
19
|
-
<span class="ruby-ivar">@@default_logger</span> = <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@@default_logger</span>
|
|
20
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
-
</body>
|
|
22
|
-
</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_logger (Eymiha::EasyLogger)</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 81</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">change_logger</span>(<span class="ruby-identifier">logger</span>)
|
|
15
|
-
<span class="ruby-identifier">old</span>, <span class="ruby-ivar">@@default_logger</span> = <span class="ruby-ivar">@@default_logger</span>, <span class="ruby-identifier">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>finish_logging (Eymiha::EasyLogger)</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 87</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">finish_logging</span>
|
|
15
|
-
<span class="ruby-identifier">change_logger</span> <span class="ruby-keyword kw">nil</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>level (Eymiha::EasyLogger)</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 92</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">level</span>
|
|
15
|
-
<span class="ruby-ivar">@@default_logger</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@@default_logger</span>.<span class="ruby-identifier">level</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,111 +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::Enum</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::Enum</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr class="top-aligned-row">
|
|
56
|
-
<td><strong>In:</strong></td>
|
|
57
|
-
<td>
|
|
58
|
-
<a href="../../files/lib/eymiha/util/enum_rb.html">
|
|
59
|
-
lib/eymiha/util/enum.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
|
-
Object
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<!-- if includes -->
|
|
90
|
-
|
|
91
|
-
<div id="section">
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<!-- if method_list -->
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</div>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<div id="validator-badges">
|
|
107
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
108
|
-
</div>
|
|
109
|
-
|
|
110
|
-
</body>
|
|
111
|
-
</html>
|