EasyLogger 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +10 -0
- data/EasyLogger.gemspec +28 -0
- data/EasyLogger.rdoc +62 -0
- data/Gemfile +21 -0
- data/README.rdoc +64 -0
- data/Rakefile +71 -0
- data/bin/EasyLogger +104 -0
- data/doc/ArubaOverrides.html +204 -0
- data/doc/EasyLogger.html +130 -0
- data/doc/EasyLogger/EasyLogger.html +188 -0
- data/doc/EasyLogger_rdoc.html +207 -0
- data/doc/File.html +208 -0
- data/doc/Gemfile.html +123 -0
- data/doc/README_rdoc.html +211 -0
- data/doc/Rakefile.html +136 -0
- data/doc/_index.html +101 -0
- data/doc/bin/EasyLogger.html +62 -0
- data/doc/class_list.html +36 -0
- data/doc/created.rid +11 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +310 -0
- data/doc/features/support/env_rb.html +56 -0
- data/doc/file.README.html +60 -0
- data/doc/file_list.html +38 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +60 -0
- data/doc/js/app.js +202 -0
- data/doc/js/full_list.js +149 -0
- data/doc/js/jquery.js +154 -0
- data/doc/lib/EasyLogger_version_rb.html +52 -0
- data/doc/lib/easy_logger/easy_logger_rb.html +52 -0
- data/doc/lib/easy_logger_rb.html +54 -0
- data/doc/method_list.html +43 -0
- data/doc/rdoc.css +706 -0
- data/doc/top-level-namespace.html +88 -0
- data/features/class_filtering.feature +79 -0
- data/features/class_method_filtering.feature +29 -0
- data/features/command_line.feature +25 -0
- data/features/method_filtering.feature +72 -0
- data/features/step_definitions/command_line_steps.rb +1 -0
- data/features/support/env.rb +14 -0
- data/html/EasyLogger.html +170 -0
- data/html/EasyLogger/EasyLogger.html +379 -0
- data/html/File.html +200 -0
- data/html/Logging.html +280 -0
- data/html/README_rdoc.html +212 -0
- data/html/bin/EasyLogger.html +64 -0
- data/html/created.rid +7 -0
- data/html/index.html +198 -0
- data/html/lib/EasyLogger_version_rb.html +52 -0
- data/html/lib/easy_logger/easy_logger_rb.html +54 -0
- data/html/lib/easy_logger/logging_example_rb.html +54 -0
- data/html/lib/easy_logger_rb.html +54 -0
- data/html/rdoc.css +706 -0
- data/lib/EasyLogger_version.rb +3 -0
- data/lib/easy_logger.rb +1 -0
- data/lib/easy_logger/easy_logger.rb +116 -0
- data/lib/easy_logger/logging_example.rb +46 -0
- data/spec/EasyLogger/easy_logger_spec.rb +63 -0
- data/spec/spec_helper.rb +22 -0
- metadata +132 -0
data/html/Logging.html
ADDED
@@ -0,0 +1,280 @@
|
|
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: Logging</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="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="./index.html">Home</a>
|
29
|
+
<a href="./index.html#classes">Classes</a>
|
30
|
+
<a href="./index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="./lib/easy_logger/logging_example_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="lib/easy_logger/logging_example.rb">lib/easy_logger/logging_example.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
<div id="parent-class-section" class="section">
|
56
|
+
<h3 class="section-header">Parent</h3>
|
57
|
+
|
58
|
+
<p class="link">Logger</p>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Namespace Contents -->
|
64
|
+
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
|
68
|
+
<div id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
<li><a href="#method-i-format_message">#format_message</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-msg2str">#msg2str</a></li>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
<!-- Included Modules -->
|
81
|
+
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<div id="project-metadata">
|
85
|
+
|
86
|
+
|
87
|
+
<div id="fileindex-section" class="section project-section">
|
88
|
+
<h3 class="section-header">Files</h3>
|
89
|
+
<ul>
|
90
|
+
|
91
|
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
92
|
+
|
93
|
+
</ul>
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
<div id="classindex-section" class="section project-section">
|
98
|
+
<h3 class="section-header">Class Index
|
99
|
+
<span class="search-toggle"><img src="./images/find.png"
|
100
|
+
height="16" width="16" alt="[+]"
|
101
|
+
title="show/hide quicksearch" /></span></h3>
|
102
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
103
|
+
<fieldset>
|
104
|
+
<legend>Quicksearch</legend>
|
105
|
+
<input type="text" name="quicksearch" value=""
|
106
|
+
class="quicksearch-field" />
|
107
|
+
</fieldset>
|
108
|
+
</form>
|
109
|
+
|
110
|
+
<ul class="link-list">
|
111
|
+
|
112
|
+
<li><a href="./EasyLogger.html">EasyLogger</a></li>
|
113
|
+
|
114
|
+
<li><a href="./EasyLogger/EasyLogger.html">EasyLogger::EasyLogger</a></li>
|
115
|
+
|
116
|
+
<li><a href="./File.html">File</a></li>
|
117
|
+
|
118
|
+
<li><a href="./Logging.html">Logging</a></li>
|
119
|
+
|
120
|
+
</ul>
|
121
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<div id="documentation">
|
129
|
+
<h1 class="class">Logging</h1>
|
130
|
+
|
131
|
+
<div id="description">
|
132
|
+
<p>
|
133
|
+
@author Sylvain Desbureaux Most of work grabbed from nuby on rails Hodel
|
134
|
+
3000 logger <a
|
135
|
+
href="http://nubyonrails.com/articles/a-hodel-3000-compliant-logger-for-the-rest-of-us.">nubyonrails.com/articles/a-hodel-3000-compliant-logger-for-the-rest-of-us.</a>
|
136
|
+
</p>
|
137
|
+
<p>
|
138
|
+
I’ve added the way to retrieve the method which sent the log and the
|
139
|
+
class via caller method.
|
140
|
+
</p>
|
141
|
+
<p>
|
142
|
+
I’ve also taken care to take the next one in caller if the methode is
|
143
|
+
lik each, block,…
|
144
|
+
</p>
|
145
|
+
<p>
|
146
|
+
In your environmment file(s) (development.rb, test.rb,…) you’ll
|
147
|
+
need to add that in order to use this logger: @example
|
148
|
+
</p>
|
149
|
+
<pre>
|
150
|
+
require File.dirname(__FILE__) + "/../../app/models/logging"
|
151
|
+
config.logger = Logging.new(config.paths.log.first )
|
152
|
+
</pre>
|
153
|
+
<p>
|
154
|
+
And you’ll need to put this file (renammed logging.rb here) in
|
155
|
+
app/models folder
|
156
|
+
</p>
|
157
|
+
|
158
|
+
</div>
|
159
|
+
|
160
|
+
<!-- Constants -->
|
161
|
+
|
162
|
+
|
163
|
+
<!-- Attributes -->
|
164
|
+
|
165
|
+
|
166
|
+
<!-- Methods -->
|
167
|
+
|
168
|
+
<div id="public-instance-method-details" class="method-section section">
|
169
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
170
|
+
|
171
|
+
|
172
|
+
<div id="format-message-method" class="method-detail ">
|
173
|
+
<a name="method-i-format_message"></a>
|
174
|
+
|
175
|
+
<div class="method-heading">
|
176
|
+
|
177
|
+
<span class="method-name">format_message</span><span
|
178
|
+
class="method-args">(severity, timestamp, progname, msg)</span>
|
179
|
+
<span class="method-click-advice">click to toggle source</span>
|
180
|
+
|
181
|
+
</div>
|
182
|
+
|
183
|
+
<div class="method-description">
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<div class="method-source-code"
|
190
|
+
id="format-message-source">
|
191
|
+
<pre>
|
192
|
+
<span class="ruby-comment cmt"># File lib/easy_logger/logging_example.rb, line 17</span>
|
193
|
+
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">format_message</span>(<span class="ruby-identifier">severity</span>, <span class="ruby-identifier">timestamp</span>, <span class="ruby-identifier">progname</span>, <span class="ruby-identifier">msg</span>)
|
194
|
+
18: <span class="ruby-identifier">i</span> = <span class="ruby-value">2</span>
|
195
|
+
19: <span class="ruby-identifier">methode</span> = <span class="ruby-identifier">caller</span>[<span class="ruby-identifier">i</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">'`'</span>)[<span class="ruby-value">1</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">"'"</span>)[<span class="ruby-value">0</span>]
|
196
|
+
20: <span class="ruby-identifier">each_true</span> = <span class="ruby-keyword kw">false</span>
|
197
|
+
21: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">methode</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">methode</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"each"</span>
|
198
|
+
22: <span class="ruby-identifier">each_true</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">methode</span> <span class="ruby-operator">==</span> <span class="ruby-value str">""</span>
|
199
|
+
23: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">methode</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"debug"</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">methode</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"info"</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">methode</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"error"</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">methode</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">' '</span>)[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">"each"</span>
|
200
|
+
24: <span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
201
|
+
25: <span class="ruby-identifier">methode</span> = <span class="ruby-identifier">caller</span>[<span class="ruby-identifier">i</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">'`'</span>)[<span class="ruby-value">1</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">"'"</span>)[<span class="ruby-value">0</span>]
|
202
|
+
26: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">methode</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">each_true</span>
|
203
|
+
27: <span class="ruby-keyword kw">end</span>
|
204
|
+
28: <span class="ruby-identifier">methode</span> = <span class="ruby-identifier">methode</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">' '</span>)[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">"block"</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">methode</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">' '</span>)[<span class="ruby-value">1</span>].<span class="ruby-identifier">center</span>(<span class="ruby-value">17</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">methode</span>.<span class="ruby-identifier">center</span>(<span class="ruby-value">17</span>)
|
205
|
+
29: <span class="ruby-identifier">objecte</span> = <span class="ruby-identifier">caller</span>[<span class="ruby-identifier">i</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">'/'</span>)[<span class="ruby-value">1</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">'.'</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">camelize</span>.<span class="ruby-identifier">center</span>(<span class="ruby-value">16</span>)
|
206
|
+
30: <span class="ruby-node">"#{timestamp.strftime("%d %b %H:%M:%S")}|rails[#{$PID}]|#{severity.center(8)}|#{objecte}|#{methode}| #{msg2str(msg).gsub(/\n/, '').lstrip}\n"</span>
|
207
|
+
31: <span class="ruby-keyword kw">end</span></pre>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
</div>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
</div>
|
216
|
+
|
217
|
+
|
218
|
+
<div id="msg-str-method" class="method-detail ">
|
219
|
+
<a name="method-i-msg2str"></a>
|
220
|
+
|
221
|
+
<div class="method-heading">
|
222
|
+
|
223
|
+
<span class="method-name">msg2str</span><span
|
224
|
+
class="method-args">(msg)</span>
|
225
|
+
<span class="method-click-advice">click to toggle source</span>
|
226
|
+
|
227
|
+
</div>
|
228
|
+
|
229
|
+
<div class="method-description">
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<div class="method-source-code"
|
236
|
+
id="msg-str-source">
|
237
|
+
<pre>
|
238
|
+
<span class="ruby-comment cmt"># File lib/easy_logger/logging_example.rb, line 34</span>
|
239
|
+
34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msg2str</span>(<span class="ruby-identifier">msg</span>)
|
240
|
+
35: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">msg</span>
|
241
|
+
36: <span class="ruby-keyword kw">when</span> <span class="ruby-operator">::</span><span class="ruby-constant">String</span>
|
242
|
+
37: <span class="ruby-identifier">msg</span>
|
243
|
+
38: <span class="ruby-keyword kw">when</span> <span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>
|
244
|
+
39: <span class="ruby-node">"#{ msg.message } (#{ msg.class }): "</span> <span class="ruby-operator"><<</span>
|
245
|
+
40: (<span class="ruby-identifier">msg</span>.<span class="ruby-identifier">backtrace</span> <span class="ruby-operator">||</span> []).<span class="ruby-identifier">join</span>(<span class="ruby-value str">" | "</span>)
|
246
|
+
41: <span class="ruby-keyword kw">else</span>
|
247
|
+
42: <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">inspect</span>
|
248
|
+
43: <span class="ruby-keyword kw">end</span>
|
249
|
+
44: <span class="ruby-keyword kw">end</span></pre>
|
250
|
+
</div>
|
251
|
+
|
252
|
+
</div>
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
</div>
|
258
|
+
|
259
|
+
|
260
|
+
</div>
|
261
|
+
|
262
|
+
|
263
|
+
</div>
|
264
|
+
|
265
|
+
|
266
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
267
|
+
|
268
|
+
<p>Disabled; run with --debug to generate this.</p>
|
269
|
+
|
270
|
+
</div>
|
271
|
+
|
272
|
+
<div id="validator-badges">
|
273
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
274
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
275
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
276
|
+
</div>
|
277
|
+
|
278
|
+
</body>
|
279
|
+
</html>
|
280
|
+
|
@@ -0,0 +1,212 @@
|
|
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
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>File: README.rdoc [Your application title]</title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
<script src="./js/jquery.js" type="text/javascript"
|
14
|
+
charset="utf-8"></script>
|
15
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
16
|
+
charset="utf-8"></script>
|
17
|
+
<script src="./js/quicksearch.js" type="text/javascript"
|
18
|
+
charset="utf-8"></script>
|
19
|
+
<script src="./js/darkfish.js" type="text/javascript"
|
20
|
+
charset="utf-8"></script>
|
21
|
+
</head>
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="./index.html">Home</a>
|
29
|
+
<a href="./index.html#classes">Classes</a>
|
30
|
+
<a href="./index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="project-metadata">
|
36
|
+
|
37
|
+
|
38
|
+
<div id="fileindex-section" class="section project-section">
|
39
|
+
<h3 class="section-header">Files</h3>
|
40
|
+
<ul>
|
41
|
+
|
42
|
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
|
48
|
+
<div id="classindex-section" class="section project-section">
|
49
|
+
<h3 class="section-header">Class Index
|
50
|
+
<span class="search-toggle"><img src="./images/find.png"
|
51
|
+
height="16" width="16" alt="[+]"
|
52
|
+
title="show/hide quicksearch" /></span></h3>
|
53
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
54
|
+
<fieldset>
|
55
|
+
<legend>Quicksearch</legend>
|
56
|
+
<input type="text" name="quicksearch" value=""
|
57
|
+
class="quicksearch-field" />
|
58
|
+
</fieldset>
|
59
|
+
</form>
|
60
|
+
|
61
|
+
<ul class="link-list">
|
62
|
+
|
63
|
+
<li><a href="./EasyLogger.html">EasyLogger</a></li>
|
64
|
+
|
65
|
+
<li><a href="./EasyLogger/EasyLogger.html">EasyLogger::EasyLogger</a></li>
|
66
|
+
|
67
|
+
<li><a href="./File.html">File</a></li>
|
68
|
+
|
69
|
+
<li><a href="./Logging.html">Logging</a></li>
|
70
|
+
|
71
|
+
</ul>
|
72
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="documentation">
|
80
|
+
<h1><tt>EasyLogger</tt></h1>
|
81
|
+
<p>
|
82
|
+
View the line matching model and/or methods on a log file in command line
|
83
|
+
</p>
|
84
|
+
<pre>
|
85
|
+
EasyLogger command_name [command-specific options] [--] arguments...
|
86
|
+
</pre>
|
87
|
+
<ul>
|
88
|
+
<li><p>
|
89
|
+
Use the command <tt>help</tt> to get a summary of commands
|
90
|
+
</p>
|
91
|
+
</li>
|
92
|
+
<li><p>
|
93
|
+
Use the command <tt>help command_name</tt> to get a help for
|
94
|
+
<tt>command_name</tt>
|
95
|
+
</p>
|
96
|
+
</li>
|
97
|
+
<li><p>
|
98
|
+
Use <tt>--</tt> to stop command line argument processing; useful if your
|
99
|
+
arguments have dashes in them
|
100
|
+
</p>
|
101
|
+
</li>
|
102
|
+
</ul>
|
103
|
+
<h2>Commands</h2>
|
104
|
+
<dl>
|
105
|
+
<dt><tt>help</tt></dt><dd><p>
|
106
|
+
Shows list of commands or help for one command
|
107
|
+
</p>
|
108
|
+
</dd>
|
109
|
+
<dt><tt>text</tt></dt><dd><p>
|
110
|
+
View the line matching model and/or methods on a log file in command line
|
111
|
+
</p>
|
112
|
+
</dd>
|
113
|
+
</dl>
|
114
|
+
<h3><tt>help [command]</tt></h3>
|
115
|
+
<p>
|
116
|
+
Shows list of commands or help for one command
|
117
|
+
</p>
|
118
|
+
<p>
|
119
|
+
Gets help for the application or its commands. Can also list the commands
|
120
|
+
in a way helpful to creating a bash-style completion function
|
121
|
+
</p>
|
122
|
+
<h4>Options</h4>
|
123
|
+
<p>
|
124
|
+
These options are specified <b>after</b> the command.
|
125
|
+
</p>
|
126
|
+
<dl>
|
127
|
+
<dt><tt>-c, --completion</tt></dt><dd><p>
|
128
|
+
List all commands one line at a time, for use with shell completion
|
129
|
+
([command] argument is partial command to match)
|
130
|
+
</p>
|
131
|
+
</dd>
|
132
|
+
</dl>
|
133
|
+
<h3><tt>text log_file [command]</tt></h3>
|
134
|
+
<p>
|
135
|
+
View the line matching model and/or methods on a log file in command line
|
136
|
+
</p>
|
137
|
+
<p>
|
138
|
+
This will display the lines of the log file matching the model and/or the
|
139
|
+
method in a command line . If tail-mode is set, only the new lines matching
|
140
|
+
will be displayed whereas if file-mode is set, it will be only the the
|
141
|
+
already logged lines matching that will be displayed. Without any of these
|
142
|
+
options, both of them will be displayed.
|
143
|
+
</p>
|
144
|
+
<h4>Options</h4>
|
145
|
+
<p>
|
146
|
+
These options are specified <b>after</b> the command.
|
147
|
+
</p>
|
148
|
+
<dl>
|
149
|
+
<dt><tt>-c, --class=arg</tt></dt><dd><p>
|
150
|
+
classe(s) to match
|
151
|
+
</p>
|
152
|
+
<p>
|
153
|
+
The classe(s) to match in the log file. Can be mixed with method to match.
|
154
|
+
</p>
|
155
|
+
</dd>
|
156
|
+
</dl>
|
157
|
+
<p>
|
158
|
+
To put several classes, use a comma without space. Example -c Class1,Class2
|
159
|
+
</p>
|
160
|
+
<dl>
|
161
|
+
<dt><tt>-f, --filemode</tt></dt><dd><p>
|
162
|
+
file-mode
|
163
|
+
</p>
|
164
|
+
<p>
|
165
|
+
if set, easy logger will sho only the matching past line of the file and
|
166
|
+
exit.
|
167
|
+
</p>
|
168
|
+
</dd>
|
169
|
+
</dl>
|
170
|
+
<p>
|
171
|
+
if both file-mode and tail-mode is activated, file-mode will be chosen.
|
172
|
+
</p>
|
173
|
+
<dl>
|
174
|
+
<dt><tt>-m, --method=arg</tt></dt><dd><p>
|
175
|
+
method(s) to match
|
176
|
+
</p>
|
177
|
+
<p>
|
178
|
+
The method(s) to match in the log file. Can be mixed with class to match.
|
179
|
+
</p>
|
180
|
+
</dd>
|
181
|
+
</dl>
|
182
|
+
<p>
|
183
|
+
To put several methods, use a comma without space. Example -m
|
184
|
+
Method1,Method2
|
185
|
+
</p>
|
186
|
+
<dl>
|
187
|
+
<dt><tt>-t, --tailmode</tt></dt><dd><p>
|
188
|
+
tail-mode
|
189
|
+
</p>
|
190
|
+
<p>
|
191
|
+
if set, easy logger will show only the new lines
|
192
|
+
</p>
|
193
|
+
</dd>
|
194
|
+
<dt><tt>-v, --verbose</tt></dt><dd><p>
|
195
|
+
verbose
|
196
|
+
</p>
|
197
|
+
<p>
|
198
|
+
Switch to verbose mode where more outputs will be shown
|
199
|
+
</p>
|
200
|
+
</dd>
|
201
|
+
</dl>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
<div id="validator-badges">
|
206
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
207
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
208
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
209
|
+
</div>
|
210
|
+
</body>
|
211
|
+
</html>
|
212
|
+
|