eymiha_util 1.0.0 → 1.0.1
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 -1
- data/html/classes/Eymiha.html +16 -1
- data/html/classes/Eymiha/BaseEnvelope.html +16 -16
- data/html/classes/Eymiha/BaseEnvelope.src/{M000010.html → M000014.html} +0 -0
- data/html/classes/Eymiha/BaseEnvelope.src/{M000011.html → M000015.html} +0 -0
- data/html/classes/Eymiha/BaseEnvelope.src/{M000012.html → M000016.html} +0 -0
- data/html/classes/Eymiha/EasyLog.html +246 -0
- data/html/classes/Eymiha/EasyLog.src/M000001.html +20 -0
- data/html/classes/Eymiha/EasyLog.src/M000002.html +18 -0
- data/html/classes/Eymiha/EasyLog.src/M000003.html +18 -0
- data/html/classes/Eymiha/EasyLog.src/M000004.html +18 -0
- data/html/classes/Eymiha/EasyLogFormatter.html +192 -0
- data/html/classes/Eymiha/EasyLogFormatter.src/M000017.html +21 -0
- data/html/classes/Eymiha/EasyLogFormatter.src/M000018.html +18 -0
- data/html/classes/Eymiha/EasyLogFormatter.src/M000019.html +18 -0
- data/html/classes/Eymiha/EasyLogger.html +218 -0
- data/html/classes/Eymiha/EasyLogger.src/M000032.html +22 -0
- data/html/classes/Eymiha/EasyLogger.src/M000033.html +18 -0
- data/html/classes/Eymiha/EasyLogger.src/M000034.html +18 -0
- data/html/classes/Eymiha/Envelope.html +47 -47
- data/html/classes/Eymiha/Envelope.src/{M000025.html → M000044.html} +0 -0
- data/html/classes/Eymiha/Envelope.src/{M000026.html → M000045.html} +0 -0
- data/html/classes/Eymiha/Envelope.src/{M000027.html → M000046.html} +0 -0
- data/html/classes/Eymiha/Envelope.src/{M000028.html → M000047.html} +0 -0
- data/html/classes/Eymiha/Envelope.src/{M000029.html → M000048.html} +0 -0
- data/html/classes/Eymiha/Envelope.src/{M000030.html → M000049.html} +0 -0
- data/html/classes/Eymiha/Envelope.src/{M000032.html → M000051.html} +0 -0
- data/html/classes/Eymiha/ForwardReference.html +11 -11
- data/html/classes/Eymiha/ForwardReference.src/{M000033.html → M000054.html} +0 -0
- data/html/classes/Eymiha/ForwardReference.src/{M000034.html → M000055.html} +0 -0
- data/html/classes/Eymiha/ForwardReferencing.html +46 -46
- data/html/classes/Eymiha/ForwardReferencing.src/M000005.html +6 -4
- data/html/classes/Eymiha/ForwardReferencing.src/M000006.html +6 -11
- data/html/classes/Eymiha/ForwardReferencing.src/M000007.html +6 -4
- data/html/classes/Eymiha/ForwardReferencing.src/M000008.html +18 -4
- data/html/classes/Eymiha/ForwardReferencing.src/M000009.html +4 -4
- data/html/classes/Eymiha/ForwardReferencing.src/M000010.html +25 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000011.html +18 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000012.html +18 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000013.html +18 -0
- data/html/classes/Eymiha/Histogram.html +60 -60
- data/html/classes/Eymiha/Histogram.src/{M000016.html → M000035.html} +0 -0
- data/html/classes/Eymiha/Histogram.src/{M000017.html → M000036.html} +0 -0
- data/html/classes/Eymiha/Histogram.src/{M000018.html → M000037.html} +0 -0
- data/html/classes/Eymiha/Histogram.src/{M000019.html → M000038.html} +0 -0
- data/html/classes/Eymiha/Histogram.src/{M000020.html → M000039.html} +0 -0
- data/html/classes/Eymiha/Histogram.src/{M000021.html → M000040.html} +0 -0
- data/html/classes/Eymiha/Histogram.src/{M000022.html → M000041.html} +0 -0
- data/html/classes/Eymiha/Histogram.src/{M000023.html → M000042.html} +0 -0
- data/html/classes/Eymiha/Histogram.src/{M000024.html → M000043.html} +0 -0
- data/html/classes/Eymiha/MethodicHash.html +17 -17
- data/html/classes/Eymiha/MethodicHash.src/{M000013.html → M000026.html} +0 -0
- data/html/classes/Eymiha/MethodicHash.src/{M000014.html → M000027.html} +0 -0
- data/html/classes/Eymiha/MethodicHash.src/{M000015.html → M000028.html} +0 -0
- data/html/classes/Eymiha/StringMap.html +184 -0
- data/html/classes/Eymiha/StringMap.src/M000029.html +18 -0
- data/html/classes/Eymiha/StringMap.src/M000030.html +18 -0
- data/html/classes/Eymiha/StringMap.src/M000031.html +18 -0
- data/html/classes/Eymiha/StringMapException.html +111 -0
- data/html/classes/Eymiha/StringMapFormat.html +227 -0
- data/html/classes/Eymiha/StringMapFormat.src/M000020.html +20 -0
- data/html/classes/Eymiha/StringMapFormat.src/M000021.html +19 -0
- data/html/classes/Eymiha/StringMapFormat.src/M000022.html +18 -0
- data/html/classes/Eymiha/StringMapFormat.src/M000023.html +22 -0
- data/html/classes/Eymiha/StringMapFormat.src/M000024.html +19 -0
- data/html/classes/Eymiha/StringMapFormat.src/M000025.html +17 -0
- data/html/classes/Eymiha/StringMapFormatItem.html +156 -0
- data/html/classes/Eymiha/StringMapFormatItem.src/M000052.html +21 -0
- data/html/classes/Eymiha/StringMapFormatItem.src/M000053.html +18 -0
- data/html/created.rid +1 -1
- data/html/files/lib/eymiha/util/easylog_rb.html +116 -0
- data/html/files/lib/eymiha/util/enum_rb.html +1 -1
- data/html/files/lib/eymiha/util/envelope_rb.html +1 -1
- data/html/files/lib/eymiha/util/forward_referencing_rb.html +1 -1
- data/html/files/lib/eymiha/util/histogram_rb.html +1 -1
- data/html/files/lib/eymiha/util/methodic_hash_rb.html +1 -1
- data/html/files/lib/eymiha/util/string_map_rb.html +101 -0
- data/html/files/lib/eymiha/util_rb.html +2 -1
- data/html/fr_class_index.html +7 -0
- data/html/fr_file_index.html +2 -0
- data/html/fr_method_index.html +55 -34
- data/html/index.html +1 -1
- data/lib/eymiha/util.rb +1 -0
- data/lib/eymiha/util/easylog.rb +184 -0
- data/lib/eymiha/util/string_map.rb +78 -0
- data/test/tc_easylog.rb +106 -0
- metadata +69 -30
- data/html/classes/Eymiha/ForwardReferencing.src/M000001.html +0 -20
- data/html/classes/Eymiha/ForwardReferencing.src/M000002.html +0 -20
- data/html/classes/Eymiha/ForwardReferencing.src/M000003.html +0 -20
- data/html/classes/Eymiha/ForwardReferencing.src/M000004.html +0 -32
@@ -0,0 +1,192 @@
|
|
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="#M000019">call</a>
|
99
|
+
<a href="#M000018">format_datetime</a>
|
100
|
+
<a href="#M000017">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-M000017" class="method-detail">
|
123
|
+
<a name="M000017"></a>
|
124
|
+
|
125
|
+
<div class="method-heading">
|
126
|
+
<a href="EasyLogFormatter.src/M000017.html" target="Code" class="method-signature"
|
127
|
+
onclick="popupCode('EasyLogFormatter.src/M000017.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-M000019" class="method-detail">
|
144
|
+
<a name="M000019"></a>
|
145
|
+
|
146
|
+
<div class="method-heading">
|
147
|
+
<a href="EasyLogFormatter.src/M000019.html" target="Code" class="method-signature"
|
148
|
+
onclick="popupCode('EasyLogFormatter.src/M000019.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-M000018" class="method-detail">
|
162
|
+
<a name="M000018"></a>
|
163
|
+
|
164
|
+
<div class="method-heading">
|
165
|
+
<a href="EasyLogFormatter.src/M000018.html" target="Code" class="method-signature"
|
166
|
+
onclick="popupCode('EasyLogFormatter.src/M000018.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>
|
@@ -0,0 +1,21 @@
|
|
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>
|
@@ -0,0 +1,18 @@
|
|
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>
|
@@ -0,0 +1,18 @@
|
|
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-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>)]
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,218 @@
|
|
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 level. The class contains a
|
85
|
+
"default" instance of Logger to which the class methods send
|
86
|
+
their log messages. By convention, the first instance created is made the
|
87
|
+
default, however this can be changed. Of course, instances may be used
|
88
|
+
directly for logging if desired. Instances format their log entries using
|
89
|
+
an <a href="EasyLogFormatter.html">EasyLogFormatter</a>.
|
90
|
+
</p>
|
91
|
+
<p>
|
92
|
+
Five class-level methods are built that have the same names as the instance
|
93
|
+
methods: debug, info, warn, error and fatal. Their arguments are different,
|
94
|
+
however, being the message to be logged and optionally, one or more Loggers
|
95
|
+
to log the message. If no Loggers are passed, the default is used, and if
|
96
|
+
that is nil,no logging takes place.
|
97
|
+
</p>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
<div id="method-list">
|
105
|
+
<h3 class="section-bar">Methods</h3>
|
106
|
+
|
107
|
+
<div class="name-list">
|
108
|
+
<a href="#M000033">change_logger</a>
|
109
|
+
<a href="#M000034">finish_logging</a>
|
110
|
+
<a href="#M000032">new</a>
|
111
|
+
</div>
|
112
|
+
</div>
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
|
117
|
+
<!-- if includes -->
|
118
|
+
|
119
|
+
<div id="section">
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<div id="attribute-list">
|
126
|
+
<h3 class="section-bar">Attributes</h3>
|
127
|
+
|
128
|
+
<div class="name-list">
|
129
|
+
<table>
|
130
|
+
<tr class="top-aligned-row context-row">
|
131
|
+
<td class="context-item-name">classify</td>
|
132
|
+
<td class="context-item-value"> [RW] </td>
|
133
|
+
<td class="context-item-desc"></td>
|
134
|
+
</tr>
|
135
|
+
</table>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<!-- if method_list -->
|
142
|
+
<div id="methods">
|
143
|
+
<h3 class="section-bar">Public Class methods</h3>
|
144
|
+
|
145
|
+
<div id="method-M000033" class="method-detail">
|
146
|
+
<a name="M000033"></a>
|
147
|
+
|
148
|
+
<div class="method-heading">
|
149
|
+
<a href="EasyLogger.src/M000033.html" target="Code" class="method-signature"
|
150
|
+
onclick="popupCode('EasyLogger.src/M000033.html');return false;">
|
151
|
+
<span class="method-name">change_logger</span><span class="method-args">(new)</span>
|
152
|
+
</a>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
<div class="method-description">
|
156
|
+
<p>
|
157
|
+
Changes the default logger to the <a href="EasyLogger.html#M000032">new</a>
|
158
|
+
logger.
|
159
|
+
</p>
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<div id="method-M000034" class="method-detail">
|
164
|
+
<a name="M000034"></a>
|
165
|
+
|
166
|
+
<div class="method-heading">
|
167
|
+
<a href="EasyLogger.src/M000034.html" target="Code" class="method-signature"
|
168
|
+
onclick="popupCode('EasyLogger.src/M000034.html');return false;">
|
169
|
+
<span class="method-name">finish_logging</span><span class="method-args">()</span>
|
170
|
+
</a>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
<div class="method-description">
|
174
|
+
<p>
|
175
|
+
Sets the default logger to nil, indicating that further class level logging
|
176
|
+
through the default logger mechanism is disabled.
|
177
|
+
</p>
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<div id="method-M000032" class="method-detail">
|
182
|
+
<a name="M000032"></a>
|
183
|
+
|
184
|
+
<div class="method-heading">
|
185
|
+
<a href="EasyLogger.src/M000032.html" target="Code" class="method-signature"
|
186
|
+
onclick="popupCode('EasyLogger.src/M000032.html');return false;">
|
187
|
+
<span class="method-name">new</span><span class="method-args">(logdev, shift_age = 'weekly', shift_size = 1048576, subsecond_precision = nil)</span>
|
188
|
+
</a>
|
189
|
+
</div>
|
190
|
+
|
191
|
+
<div class="method-description">
|
192
|
+
<p>
|
193
|
+
Creates a <a href="EasyLogger.html#M000032">new</a> <a
|
194
|
+
href="EasyLogger.html">EasyLogger</a> instance. Logging is recorded through
|
195
|
+
the given logdev, either an IO stream or to a file when logdev is a String
|
196
|
+
containing its filename. Shift age is either the number of log files to
|
197
|
+
keep, or the frequency of rotation. Shift size is the maximum logfile size,
|
198
|
+
applicable when shift age is a number. Subsecond precision is the number of
|
199
|
+
decimal places that express fractional seconds. If this is the first
|
200
|
+
instance being created, it is remembered and used by the logging methods at
|
201
|
+
the class level as the default logger.
|
202
|
+
</p>
|
203
|
+
</div>
|
204
|
+
</div>
|
205
|
+
|
206
|
+
|
207
|
+
</div>
|
208
|
+
|
209
|
+
|
210
|
+
</div>
|
211
|
+
|
212
|
+
|
213
|
+
<div id="validator-badges">
|
214
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
215
|
+
</div>
|
216
|
+
|
217
|
+
</body>
|
218
|
+
</html>
|