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,64 @@
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 [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 file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-12-16 10:51:29 +0100</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>rubygems</li>
35
+
36
+ <li>gli</li>
37
+
38
+ <li>EasyLogger_version</li>
39
+
40
+ <li>easy_logger</li>
41
+
42
+ </ul>
43
+ </dd>
44
+
45
+
46
+
47
+ </dl>
48
+ </div>
49
+
50
+ <div id="documentation">
51
+
52
+ <div class="description">
53
+ <h2>Description</h2>
54
+ <p>
55
+ 1.9 adds realpath to resolve symlinks; 1.8 doesn&#8217;t have this method,
56
+ so we add it so we get resolved symlinks and compatibility
57
+ </p>
58
+
59
+ </div>
60
+
61
+ </div>
62
+ </body>
63
+ </html>
64
+
@@ -0,0 +1,7 @@
1
+ Thu, 16 Dec 2010 11:10:25 +0100
2
+ README.rdoc Thu, 16 Dec 2010 11:01:22 +0100
3
+ lib/EasyLogger_version.rb Thu, 16 Dec 2010 10:18:31 +0100
4
+ lib/easy_logger.rb Mon, 13 Dec 2010 15:31:34 +0100
5
+ lib/easy_logger/easy_logger.rb Thu, 16 Dec 2010 10:47:44 +0100
6
+ lib/easy_logger/logging_example.rb Thu, 16 Dec 2010 10:44:52 +0100
7
+ bin/EasyLogger Thu, 16 Dec 2010 10:51:29 +0100
@@ -0,0 +1,198 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>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" charset="utf-8"></script>
14
+ <script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
16
+ <script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
17
+
18
+ </head>
19
+ <body class="indexpage">
20
+
21
+
22
+ <h1>Your application title</h1>
23
+
24
+
25
+ <div id="main">
26
+
27
+ <p>
28
+ View the line matching model and/or methods on a log file in command line
29
+ </p>
30
+ <pre>
31
+ EasyLogger command_name [command-specific options] [--] arguments...
32
+ </pre>
33
+ <ul>
34
+ <li><p>
35
+ Use the command <tt>help</tt> to get a summary of commands
36
+ </p>
37
+ </li>
38
+ <li><p>
39
+ Use the command <tt>help command_name</tt> to get a help for
40
+ <tt>command_name</tt>
41
+ </p>
42
+ </li>
43
+ <li><p>
44
+ Use <tt>--</tt> to stop command line argument processing; useful if your
45
+ arguments have dashes in them
46
+ </p>
47
+ </li>
48
+ </ul>
49
+ <h2>Commands</h2>
50
+ <dl>
51
+ <dt><tt>help</tt></dt><dd><p>
52
+ Shows list of commands or help for one command
53
+ </p>
54
+ </dd>
55
+ <dt><tt>text</tt></dt><dd><p>
56
+ View the line matching model and/or methods on a log file in command line
57
+ </p>
58
+ </dd>
59
+ </dl>
60
+ <h3><tt>help [command]</tt></h3>
61
+ <p>
62
+ Shows list of commands or help for one command
63
+ </p>
64
+ <p>
65
+ Gets help for the application or its commands. Can also list the commands
66
+ in a way helpful to creating a bash-style completion function
67
+ </p>
68
+ <h4>Options</h4>
69
+ <p>
70
+ These options are specified <b>after</b> the command.
71
+ </p>
72
+ <dl>
73
+ <dt><tt>-c, --completion</tt></dt><dd><p>
74
+ List all commands one line at a time, for use with shell completion
75
+ ([command] argument is partial command to match)
76
+ </p>
77
+ </dd>
78
+ </dl>
79
+ <h3><tt>text log_file [command]</tt></h3>
80
+ <p>
81
+ View the line matching model and/or methods on a log file in command line
82
+ </p>
83
+ <p>
84
+ This will display the lines of the log file matching the model and/or the
85
+ method in a command line . If tail-mode is set, only the new lines matching
86
+ will be displayed whereas if file-mode is set, it will be only the the
87
+ already logged lines matching that will be displayed. Without any of these
88
+ options, both of them will be displayed.
89
+ </p>
90
+ <h4>Options</h4>
91
+ <p>
92
+ These options are specified <b>after</b> the command.
93
+ </p>
94
+ <dl>
95
+ <dt><tt>-c, --class=arg</tt></dt><dd><p>
96
+ classe(s) to match
97
+ </p>
98
+ <p>
99
+ The classe(s) to match in the log file. Can be mixed with method to match.
100
+ </p>
101
+ </dd>
102
+ </dl>
103
+ <p>
104
+ To put several classes, use a comma without space. Example -c Class1,Class2
105
+ </p>
106
+ <dl>
107
+ <dt><tt>-f, --filemode</tt></dt><dd><p>
108
+ file-mode
109
+ </p>
110
+ <p>
111
+ if set, easy logger will sho only the matching past line of the file and
112
+ exit.
113
+ </p>
114
+ </dd>
115
+ </dl>
116
+ <p>
117
+ if both file-mode and tail-mode is activated, file-mode will be chosen.
118
+ </p>
119
+ <dl>
120
+ <dt><tt>-m, --method=arg</tt></dt><dd><p>
121
+ method(s) to match
122
+ </p>
123
+ <p>
124
+ The method(s) to match in the log file. Can be mixed with class to match.
125
+ </p>
126
+ </dd>
127
+ </dl>
128
+ <p>
129
+ To put several methods, use a comma without space. Example -m
130
+ Method1,Method2
131
+ </p>
132
+ <dl>
133
+ <dt><tt>-t, --tailmode</tt></dt><dd><p>
134
+ tail-mode
135
+ </p>
136
+ <p>
137
+ if set, easy logger will show only the new lines
138
+ </p>
139
+ </dd>
140
+ <dt><tt>-v, --verbose</tt></dt><dd><p>
141
+ verbose
142
+ </p>
143
+ <p>
144
+ Switch to verbose mode where more outputs will be shown
145
+ </p>
146
+ </dd>
147
+ </dl>
148
+
149
+ </div>
150
+
151
+
152
+
153
+
154
+ <h2>Files</h2>
155
+ <ul>
156
+
157
+ <li class="file"><a href="README_rdoc.html">README.rdoc</a></li>
158
+
159
+ </ul>
160
+
161
+
162
+ <h2 id="classes">Classes/Modules</h2>
163
+ <ul>
164
+
165
+ <li class="module"><a href="EasyLogger.html">EasyLogger</a></li>
166
+
167
+ <li class="class"><a href="EasyLogger/EasyLogger.html">EasyLogger::EasyLogger</a></li>
168
+
169
+ <li class="class"><a href="File.html">File</a></li>
170
+
171
+ <li class="class"><a href="Logging.html">Logging</a></li>
172
+
173
+ </ul>
174
+
175
+ <h2 id="methods">Methods</h2>
176
+ <ul>
177
+
178
+ <li><a href="File.html#method-c-realpath">::realpath &mdash; File</a></li>
179
+
180
+ <li><a href="EasyLogger/EasyLogger.html#method-i-file">#file &mdash; EasyLogger::EasyLogger</a></li>
181
+
182
+ <li><a href="Logging.html#method-i-format_message">#format_message &mdash; Logging</a></li>
183
+
184
+ <li><a href="EasyLogger/EasyLogger.html#method-i-match">#match &mdash; EasyLogger::EasyLogger</a></li>
185
+
186
+ <li><a href="Logging.html#method-i-msg2str">#msg2str &mdash; Logging</a></li>
187
+
188
+ <li><a href="EasyLogger/EasyLogger.html#method-i-tail">#tail &mdash; EasyLogger::EasyLogger</a></li>
189
+
190
+ </ul>
191
+
192
+ <div id="validator-badges">
193
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
194
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
195
+ Rdoc Generator</a> 1.1.6</small>.</p>
196
+ </div>
197
+ </body>
198
+ </html>
@@ -0,0 +1,52 @@
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_version.rb [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 file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-12-16 10:18:31 +0100</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ </ul>
35
+ </dd>
36
+
37
+
38
+
39
+ </dl>
40
+ </div>
41
+
42
+ <div id="documentation">
43
+
44
+ <div class="description">
45
+ <h2>Description</h2>
46
+
47
+ </div>
48
+
49
+ </div>
50
+ </body>
51
+ </html>
52
+
@@ -0,0 +1,54 @@
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: easy_logger.rb [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 file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-12-16 10:47:44 +0100</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>file/tail</li>
35
+
36
+ </ul>
37
+ </dd>
38
+
39
+
40
+
41
+ </dl>
42
+ </div>
43
+
44
+ <div id="documentation">
45
+
46
+ <div class="description">
47
+ <h2>Description</h2>
48
+
49
+ </div>
50
+
51
+ </div>
52
+ </body>
53
+ </html>
54
+
@@ -0,0 +1,54 @@
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: logging_example.rb [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 file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-12-16 10:44:52 +0100</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>logger</li>
35
+
36
+ </ul>
37
+ </dd>
38
+
39
+
40
+
41
+ </dl>
42
+ </div>
43
+
44
+ <div id="documentation">
45
+
46
+ <div class="description">
47
+ <h2>Description</h2>
48
+
49
+ </div>
50
+
51
+ </div>
52
+ </body>
53
+ </html>
54
+
@@ -0,0 +1,54 @@
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: easy_logger.rb [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 file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-12-13 15:31:34 +0100</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>easy_logger/easy_logger</li>
35
+
36
+ </ul>
37
+ </dd>
38
+
39
+
40
+
41
+ </dl>
42
+ </div>
43
+
44
+ <div id="documentation">
45
+
46
+ <div class="description">
47
+ <h2>Description</h2>
48
+
49
+ </div>
50
+
51
+ </div>
52
+ </body>
53
+ </html>
54
+