EasyLogger 0.1.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.
Files changed (62) hide show
  1. data/.gitignore +10 -0
  2. data/EasyLogger.gemspec +28 -0
  3. data/EasyLogger.rdoc +62 -0
  4. data/Gemfile +21 -0
  5. data/README.rdoc +64 -0
  6. data/Rakefile +71 -0
  7. data/bin/EasyLogger +104 -0
  8. data/doc/ArubaOverrides.html +204 -0
  9. data/doc/EasyLogger.html +130 -0
  10. data/doc/EasyLogger/EasyLogger.html +188 -0
  11. data/doc/EasyLogger_rdoc.html +207 -0
  12. data/doc/File.html +208 -0
  13. data/doc/Gemfile.html +123 -0
  14. data/doc/README_rdoc.html +211 -0
  15. data/doc/Rakefile.html +136 -0
  16. data/doc/_index.html +101 -0
  17. data/doc/bin/EasyLogger.html +62 -0
  18. data/doc/class_list.html +36 -0
  19. data/doc/created.rid +11 -0
  20. data/doc/css/common.css +1 -0
  21. data/doc/css/full_list.css +53 -0
  22. data/doc/css/style.css +310 -0
  23. data/doc/features/support/env_rb.html +56 -0
  24. data/doc/file.README.html +60 -0
  25. data/doc/file_list.html +38 -0
  26. data/doc/frames.html +13 -0
  27. data/doc/index.html +60 -0
  28. data/doc/js/app.js +202 -0
  29. data/doc/js/full_list.js +149 -0
  30. data/doc/js/jquery.js +154 -0
  31. data/doc/lib/EasyLogger_version_rb.html +52 -0
  32. data/doc/lib/easy_logger/easy_logger_rb.html +52 -0
  33. data/doc/lib/easy_logger_rb.html +54 -0
  34. data/doc/method_list.html +43 -0
  35. data/doc/rdoc.css +706 -0
  36. data/doc/top-level-namespace.html +88 -0
  37. data/features/class_filtering.feature +79 -0
  38. data/features/class_method_filtering.feature +29 -0
  39. data/features/command_line.feature +25 -0
  40. data/features/method_filtering.feature +72 -0
  41. data/features/step_definitions/command_line_steps.rb +1 -0
  42. data/features/support/env.rb +14 -0
  43. data/html/EasyLogger.html +170 -0
  44. data/html/EasyLogger/EasyLogger.html +379 -0
  45. data/html/File.html +200 -0
  46. data/html/Logging.html +280 -0
  47. data/html/README_rdoc.html +212 -0
  48. data/html/bin/EasyLogger.html +64 -0
  49. data/html/created.rid +7 -0
  50. data/html/index.html +198 -0
  51. data/html/lib/EasyLogger_version_rb.html +52 -0
  52. data/html/lib/easy_logger/easy_logger_rb.html +54 -0
  53. data/html/lib/easy_logger/logging_example_rb.html +54 -0
  54. data/html/lib/easy_logger_rb.html +54 -0
  55. data/html/rdoc.css +706 -0
  56. data/lib/EasyLogger_version.rb +3 -0
  57. data/lib/easy_logger.rb +1 -0
  58. data/lib/easy_logger/easy_logger.rb +116 -0
  59. data/lib/easy_logger/logging_example.rb +46 -0
  60. data/spec/EasyLogger/easy_logger_spec.rb +63 -0
  61. data/spec/spec_helper.rb +22 -0
  62. metadata +132 -0
@@ -0,0 +1,130 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Module: EasyLogger</title>
7
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="_index.html">Index (E)</a> &raquo;
27
+
28
+
29
+ <span class="title">EasyLogger</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Module: EasyLogger
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ <dt class="r1 last">Defined in:</dt>
62
+ <dd class="r1 last">lib/easy_logger/easy_logger.rb<span class="defines">,<br />
63
+ lib/EasyLogger_version.rb</span>
64
+ </dd>
65
+
66
+ </dl>
67
+ <div class="clear"></div>
68
+
69
+ <h2>Overview</h2><div class="docstring">
70
+ <div class="discussion">
71
+
72
+
73
+ </div>
74
+ </div>
75
+ <div class="tags">
76
+ <h3>Author:</h3>
77
+ <ul class="author">
78
+
79
+ <li>
80
+
81
+
82
+
83
+
84
+
85
+ <div class='inline'><p>
86
+ Sylvain Desbureaux
87
+ </p>
88
+ </div>
89
+
90
+ </li>
91
+
92
+ </ul>
93
+
94
+ </div><h2>Defined Under Namespace</h2>
95
+ <p class="children">
96
+
97
+
98
+
99
+
100
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="EasyLogger/EasyLogger.html" title="EasyLogger::EasyLogger (class)">EasyLogger</a></span>
101
+
102
+
103
+ </p>
104
+
105
+ <h2>Constant Summary</h2>
106
+
107
+ <dl class="constants">
108
+
109
+ <dt id="VERSION-constant" class="">VERSION =
110
+
111
+ </dt>
112
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.1</span><span class='tstring_end'>'</span></span></pre></dd>
113
+
114
+ </dl>
115
+
116
+
117
+
118
+
119
+
120
+
121
+ </div>
122
+
123
+ <div id="footer">
124
+ Generated on Mon Dec 13 17:33:12 2010 by
125
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
+ 0.6.3 (ruby-1.9.2).
127
+ </div>
128
+
129
+ </body>
130
+ </html>
@@ -0,0 +1,188 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Class: EasyLogger::EasyLogger</title>
7
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="../_index.html">Index (E)</a> &raquo;
27
+ <span class='title'><span class='object_link'><a href="../EasyLogger.html" title="EasyLogger (module)">EasyLogger</a></span></span>
28
+ &raquo;
29
+ <span class="title">EasyLogger</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Class: EasyLogger::EasyLogger
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+ <dt class="r1">Inherits:</dt>
55
+ <dd class="r1">
56
+ <span class="inheritName">Object</span>
57
+
58
+ <ul class="fullTree">
59
+ <li>Object</li>
60
+
61
+ <li class="next">EasyLogger::EasyLogger</li>
62
+
63
+ </ul>
64
+ <a href="#" class="inheritanceTree">show all</a>
65
+
66
+ </dd>
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r2 last">Defined in:</dt>
77
+ <dd class="r2 last">lib/easy_logger/easy_logger.rb</dd>
78
+
79
+ </dl>
80
+ <div class="clear"></div>
81
+
82
+ <h2>Overview</h2><div class="docstring">
83
+ <div class="discussion">
84
+ <h1>Class EasyLogger which will do all the job of matching the lines and showing it</h1>
85
+
86
+
87
+ </div>
88
+ </div>
89
+ <div class="tags">
90
+ <h3>Author:</h3>
91
+ <ul class="author">
92
+
93
+ <li>
94
+
95
+
96
+
97
+
98
+
99
+ <div class='inline'><p>
100
+ Sylvain Desbureaux
101
+ </p>
102
+ </div>
103
+
104
+ </li>
105
+
106
+ </ul>
107
+
108
+ </div>
109
+
110
+
111
+
112
+ <h2>
113
+ Instance Method Summary
114
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
115
+ </h2>
116
+
117
+ <ul class="summary">
118
+
119
+ <li class="public ">
120
+ <span class="summary_signature">
121
+
122
+ <a href="#file-instance_method" title="#file (instance method)">- (Object) <strong>file</strong> </a>
123
+
124
+
125
+
126
+ </span>
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <span class="summary_desc"><div class='inline'></div></span>
136
+
137
+ </li>
138
+
139
+
140
+ </ul>
141
+
142
+
143
+
144
+
145
+ <div id="instance_method_details" class="method_details_list">
146
+ <h2>Instance Method Details</h2>
147
+
148
+
149
+ <div class="method_details first">
150
+ <p class="signature first" id="file-instance_method">
151
+
152
+ - (<tt>Object</tt>) <strong>file</strong>
153
+
154
+
155
+
156
+ </p><table class="source_code">
157
+ <tr>
158
+ <td>
159
+ <pre class="lines">
160
+
161
+
162
+ 7
163
+ 8
164
+ 9</pre>
165
+ </td>
166
+ <td>
167
+ <pre class="code"><span class="info file"># File 'lib/easy_logger/easy_logger.rb', line 7</span>
168
+
169
+ <span class='kw'>def</span> <span class='id file'>file</span><span class='lparen'>(</span><span class='rparen'>)</span>
170
+
171
+ <span class='kw'>end</span></pre>
172
+ </td>
173
+ </tr>
174
+ </table>
175
+ </div>
176
+
177
+ </div>
178
+
179
+ </div>
180
+
181
+ <div id="footer">
182
+ Generated on Mon Dec 13 17:33:12 2010 by
183
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
184
+ 0.6.3 (ruby-1.9.2).
185
+ </div>
186
+
187
+ </body>
188
+ </html>
@@ -0,0 +1,207 @@
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: EasyLogger.rdoc [RDoc Documentation]</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="./EasyLogger_rdoc.html">EasyLogger.rdoc</a></li>
43
+
44
+ <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
45
+
46
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
47
+
48
+ <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
49
+
50
+ <li class="file"><a href="./nbproject/private/rake-d_txt.html">rake-d.txt</a></li>
51
+
52
+ </ul>
53
+ </div>
54
+
55
+
56
+ <div id="classindex-section" class="section project-section">
57
+ <h3 class="section-header">Class Index
58
+ <span class="search-toggle"><img src="./images/find.png"
59
+ height="16" width="16" alt="[+]"
60
+ title="show/hide quicksearch" /></span></h3>
61
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
62
+ <fieldset>
63
+ <legend>Quicksearch</legend>
64
+ <input type="text" name="quicksearch" value=""
65
+ class="quicksearch-field" />
66
+ </fieldset>
67
+ </form>
68
+
69
+ <ul class="link-list">
70
+
71
+ <li><a href="./EasyLogger.html">EasyLogger</a></li>
72
+
73
+ <li><a href="./EasyLogger/EasyLogger.html">EasyLogger::EasyLogger</a></li>
74
+
75
+ <li><a href="./ArubaOverrides.html">ArubaOverrides</a></li>
76
+
77
+ <li><a href="./File.html">File</a></li>
78
+
79
+ </ul>
80
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
81
+ </div>
82
+
83
+
84
+ </div>
85
+ </div>
86
+
87
+ <div id="documentation">
88
+ <h1><tt>EasyLogger</tt></h1>
89
+ <pre>
90
+ EasyLogger [global options] command_name [command-specific options] [--] arguments...
91
+ </pre>
92
+ <ul>
93
+ <li><p>
94
+ Use the command <tt>help</tt> to get a summary of commands
95
+ </p>
96
+ </li>
97
+ <li><p>
98
+ Use the command <tt>help command_name</tt> to get a help for
99
+ <tt>command_name</tt>
100
+ </p>
101
+ </li>
102
+ <li><p>
103
+ Use <tt>--</tt> to stop command line argument processing; useful if your
104
+ arguments have dashes in them
105
+ </p>
106
+ </li>
107
+ </ul>
108
+ <h2>Global Options</h2>
109
+ <p>
110
+ These options are available for any command and are specified before the
111
+ name of the command
112
+ </p>
113
+ <dl>
114
+ <dt><tt>-f, --filemode</tt></dt><dd><p>
115
+ file-mode
116
+ </p>
117
+ <p>
118
+ if set, easy logger will sho only the matching past line of the file and
119
+ exit.
120
+ </p>
121
+ </dd>
122
+ </dl>
123
+ <p>
124
+ if both file-mode and tail-mode is activated, file-mode will be chosen.
125
+ </p>
126
+ <dl>
127
+ <dt><tt>-m, --model=arg</tt></dt><dd><p>
128
+ model(s) to match
129
+ </p>
130
+ <p>
131
+ The model(s) to match in the log file. Can be mixed with method to match
132
+ </p>
133
+ </dd>
134
+ <dt><tt>-n, --method=arg</tt></dt><dd><p>
135
+ method(s) to match
136
+ </p>
137
+ <p>
138
+ The method(s) to match in the log file. Can be mixed with model to match
139
+ </p>
140
+ </dd>
141
+ <dt><tt>-t, --tailmode</tt></dt><dd><p>
142
+ tail-mode
143
+ </p>
144
+ <p>
145
+ if set, easy logger will show only the new lines
146
+ </p>
147
+ </dd>
148
+ <dt><tt>-v, --verbose</tt></dt><dd><p>
149
+ verbose
150
+ </p>
151
+ <p>
152
+ Switch to verbose mode where more outputs will be shown
153
+ </p>
154
+ </dd>
155
+ </dl>
156
+ <h2>Commands</h2>
157
+ <dl>
158
+ <dt><tt>help</tt></dt><dd><p>
159
+ Shows list of commands or help for one command
160
+ </p>
161
+ </dd>
162
+ <dt><tt>text</tt></dt><dd><p>
163
+ View the line matching model and/or methods on a log file in command line
164
+ </p>
165
+ </dd>
166
+ </dl>
167
+ <h3><tt>help [command]</tt></h3>
168
+ <p>
169
+ Shows list of commands or help for one command
170
+ </p>
171
+ <p>
172
+ Gets help for the application or its commands. Can also list the commands
173
+ in a way helpful to creating a bash-style completion function
174
+ </p>
175
+ <h4>Options</h4>
176
+ <p>
177
+ These options are specified <b>after</b> the command.
178
+ </p>
179
+ <dl>
180
+ <dt><tt>-c, --completion</tt></dt><dd><p>
181
+ List all commands one line at a time, for use with shell completion
182
+ ([command] argument is partial command to match)
183
+ </p>
184
+ </dd>
185
+ </dl>
186
+ <h3><tt>text log_file [command]</tt></h3>
187
+ <p>
188
+ View the line matching model and/or methods on a log file in command line
189
+ </p>
190
+ <p>
191
+ This will display the lines of the log file matching the model and/or the
192
+ method in a command line mode. If tail-mode is set, only the new lines
193
+ matching will be displayed whereas if file-mode is set, it will be only the
194
+ the already logged lines matching that will be displayed. Without any of
195
+ these options, both of them will be displayed.
196
+ </p>
197
+
198
+ </div>
199
+
200
+ <div id="validator-badges">
201
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
202
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
203
+ Rdoc Generator</a> 1.1.6</small>.</p>
204
+ </div>
205
+ </body>
206
+ </html>
207
+