grizzled-rails-logger 0.1.0
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/LICENSE.md +31 -0
- data/README.md +190 -0
- data/Rakefile +118 -0
- data/grizzled-rails-logger.gemspec +30 -0
- data/lib/grizzled.rb +42 -0
- data/lib/grizzled/rails.rb +42 -0
- data/lib/grizzled/rails/logger.rb +125 -0
- data/rdoc/Grizzled.html +138 -0
- data/rdoc/Grizzled/Rails.html +138 -0
- data/rdoc/Grizzled/Rails/Logger.html +207 -0
- data/rdoc/Grizzled/Rails/Logger/Extension.html +314 -0
- data/rdoc/Grizzled/Rails/Logger/Railtie.html +138 -0
- data/rdoc/created.rid +4 -0
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +109 -0
- data/rdoc/js/darkfish.js +116 -0
- data/rdoc/js/jquery.js +32 -0
- data/rdoc/js/quicksearch.js +114 -0
- data/rdoc/js/thickbox-compressed.js +10 -0
- data/rdoc/lib/grizzled/rails/logger_rb.html +71 -0
- data/rdoc/lib/grizzled/rails_rb.html +102 -0
- data/rdoc/lib/grizzled_rb.html +102 -0
- data/rdoc/rdoc.css +763 -0
- metadata +100 -0
@@ -0,0 +1,314 @@
|
|
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>Module: Grizzled::Rails::Logger::Extension</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../../../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="module">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="../../../index.html">Home</a>
|
25
|
+
<a href="../../../index.html#classes">Classes</a>
|
26
|
+
<a href="../../../index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="../../../lib/grizzled/rails/logger_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/grizzled/rails/logger.rb">lib/grizzled/rails/logger.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<!-- Method Quickref -->
|
56
|
+
<div id="method-list-section" class="section">
|
57
|
+
<h3 class="section-header">Methods</h3>
|
58
|
+
<ul class="link-list">
|
59
|
+
|
60
|
+
<li><a href="#method-c-included">::included</a></li>
|
61
|
+
|
62
|
+
<li><a href="#method-i-add_with_grizzling">#add_with_grizzling</a></li>
|
63
|
+
|
64
|
+
<li><a href="#method-i-exception">#exception</a></li>
|
65
|
+
|
66
|
+
</ul>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
</div>
|
72
|
+
|
73
|
+
<div id="project-metadata">
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<div id="classindex-section" class="section project-section">
|
78
|
+
<h3 class="section-header">Class/Module Index
|
79
|
+
<span class="search-toggle"><img src="../../../images/find.png"
|
80
|
+
height="16" width="16" alt="[+]"
|
81
|
+
title="show/hide quicksearch" /></span></h3>
|
82
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
83
|
+
<fieldset>
|
84
|
+
<legend>Quicksearch</legend>
|
85
|
+
<input type="text" name="quicksearch" value=""
|
86
|
+
class="quicksearch-field" />
|
87
|
+
</fieldset>
|
88
|
+
</form>
|
89
|
+
|
90
|
+
<ul class="link-list">
|
91
|
+
|
92
|
+
<li><a href="../../../Grizzled.html">Grizzled</a></li>
|
93
|
+
|
94
|
+
<li><a href="../../../Grizzled/Rails.html">Grizzled::Rails</a></li>
|
95
|
+
|
96
|
+
<li><a href="../../../Grizzled/Rails/Logger.html">Grizzled::Rails::Logger</a></li>
|
97
|
+
|
98
|
+
<li><a href="../../../Grizzled/Rails/Logger/Extension.html">Grizzled::Rails::Logger::Extension</a></li>
|
99
|
+
|
100
|
+
<li><a href="../../../Grizzled/Rails/Logger/Railtie.html">Grizzled::Rails::Logger::Railtie</a></li>
|
101
|
+
|
102
|
+
</ul>
|
103
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div id="documentation">
|
111
|
+
<h1 class="module">Grizzled::Rails::Logger::Extension</h1>
|
112
|
+
|
113
|
+
<div id="description" class="description">
|
114
|
+
|
115
|
+
<p>The actual logging extension sits in here.</p>
|
116
|
+
|
117
|
+
</div><!-- description -->
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<!-- Constants -->
|
129
|
+
<div id="constants-list" class="section">
|
130
|
+
<h3 class="section-header">Constants</h3>
|
131
|
+
<dl>
|
132
|
+
|
133
|
+
<dt><a name="DEBUG">DEBUG</a></dt>
|
134
|
+
|
135
|
+
<dd class="description"></dd>
|
136
|
+
|
137
|
+
|
138
|
+
<dt><a name="ERROR">ERROR</a></dt>
|
139
|
+
|
140
|
+
<dd class="description"></dd>
|
141
|
+
|
142
|
+
|
143
|
+
<dt><a name="FATAL">FATAL</a></dt>
|
144
|
+
|
145
|
+
<dd class="description"></dd>
|
146
|
+
|
147
|
+
|
148
|
+
<dt><a name="INFO">INFO</a></dt>
|
149
|
+
|
150
|
+
<dd class="description"></dd>
|
151
|
+
|
152
|
+
|
153
|
+
<dt><a name="SEVERITIES">SEVERITIES</a></dt>
|
154
|
+
|
155
|
+
<dd class="description"></dd>
|
156
|
+
|
157
|
+
|
158
|
+
<dt><a name="SEVERITY_MAP">SEVERITY_MAP</a></dt>
|
159
|
+
|
160
|
+
<dd class="description"></dd>
|
161
|
+
|
162
|
+
|
163
|
+
<dt><a name="Severity">Severity</a></dt>
|
164
|
+
|
165
|
+
<dd class="description"></dd>
|
166
|
+
|
167
|
+
|
168
|
+
<dt><a name="WARN">WARN</a></dt>
|
169
|
+
|
170
|
+
<dd class="description"></dd>
|
171
|
+
|
172
|
+
|
173
|
+
</dl>
|
174
|
+
</div>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<!-- Methods -->
|
180
|
+
|
181
|
+
<div id="public-class-method-details" class="method-section section">
|
182
|
+
<h3 class="section-header">Public Class Methods</h3>
|
183
|
+
|
184
|
+
|
185
|
+
<div id="included-method" class="method-detail ">
|
186
|
+
<a name="method-c-included"></a>
|
187
|
+
|
188
|
+
|
189
|
+
<div class="method-heading">
|
190
|
+
<span class="method-name">included</span><span
|
191
|
+
class="method-args">(base)</span>
|
192
|
+
<span class="method-click-advice">click to toggle source</span>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
|
196
|
+
<div class="method-description">
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<div class="method-source-code" id="included-source">
|
203
|
+
<pre>
|
204
|
+
<span class="ruby-comment"># File lib/grizzled/rails/logger.rb, line 65</span>
|
205
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">base</span>)
|
206
|
+
<span class="ruby-identifier">base</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword">do</span>
|
207
|
+
<span class="ruby-identifier">alias_method_chain</span> <span class="ruby-value">:add</span>, <span class="ruby-value">:grizzling</span>
|
208
|
+
<span class="ruby-keyword">end</span>
|
209
|
+
<span class="ruby-keyword">end</span></pre>
|
210
|
+
</div><!-- included-source -->
|
211
|
+
|
212
|
+
</div>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
</div><!-- included-method -->
|
218
|
+
|
219
|
+
|
220
|
+
</div><!-- public-class-method-details -->
|
221
|
+
|
222
|
+
<div id="public-instance-method-details" class="method-section section">
|
223
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
224
|
+
|
225
|
+
|
226
|
+
<div id="add_with_grizzling-method" class="method-detail ">
|
227
|
+
<a name="method-i-add_with_grizzling"></a>
|
228
|
+
|
229
|
+
|
230
|
+
<div class="method-heading">
|
231
|
+
<span class="method-name">add_with_grizzling</span><span
|
232
|
+
class="method-args">(severity, message = nil, progname = nil, &block)</span>
|
233
|
+
<span class="method-click-advice">click to toggle source</span>
|
234
|
+
</div>
|
235
|
+
|
236
|
+
|
237
|
+
<div class="method-description">
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<div class="method-source-code" id="add_with_grizzling-source">
|
244
|
+
<pre>
|
245
|
+
<span class="ruby-comment"># File lib/grizzled/rails/logger.rb, line 82</span>
|
246
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_with_grizzling</span>(<span class="ruby-identifier">severity</span>, <span class="ruby-identifier">message</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">progname</span> = <span class="ruby-keyword">nil</span>, &<span class="ruby-identifier">block</span>)
|
247
|
+
<span class="ruby-identifier">do_add</span>(<span class="ruby-identifier">severity</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">progname</span>, &<span class="ruby-identifier">block</span>)
|
248
|
+
<span class="ruby-keyword">end</span></pre>
|
249
|
+
</div><!-- add_with_grizzling-source -->
|
250
|
+
|
251
|
+
</div>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
</div><!-- add_with_grizzling-method -->
|
257
|
+
|
258
|
+
|
259
|
+
<div id="exception-method" class="method-detail ">
|
260
|
+
<a name="method-i-exception"></a>
|
261
|
+
|
262
|
+
|
263
|
+
<div class="method-heading">
|
264
|
+
<span class="method-name">exception</span><span
|
265
|
+
class="method-args">(message, ex, progname = nil)</span>
|
266
|
+
<span class="method-click-advice">click to toggle source</span>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
|
270
|
+
<div class="method-description">
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
<div class="method-source-code" id="exception-source">
|
277
|
+
<pre>
|
278
|
+
<span class="ruby-comment"># File lib/grizzled/rails/logger.rb, line 71</span>
|
279
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">exception</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">ex</span>, <span class="ruby-identifier">progname</span> = <span class="ruby-keyword">nil</span>)
|
280
|
+
<span class="ruby-identifier">ex_message</span> = <span class="ruby-node">"#{ex.class} (backtrace):\n#{ex.backtrace.join("\n")}"</span>
|
281
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">message</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>)
|
282
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-node">"#{ex_message}"</span>
|
283
|
+
<span class="ruby-keyword">else</span>
|
284
|
+
<span class="ruby-identifier">message</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"\n#{ex_message}"</span>
|
285
|
+
<span class="ruby-keyword">end</span>
|
286
|
+
|
287
|
+
<span class="ruby-identifier">do_add</span>(<span class="ruby-constant">ERROR</span>, <span class="ruby-identifier">message</span>, <span class="ruby-identifier">progname</span>, <span class="ruby-value">:flatten</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">false</span>)
|
288
|
+
<span class="ruby-keyword">end</span></pre>
|
289
|
+
</div><!-- exception-source -->
|
290
|
+
|
291
|
+
</div>
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
</div><!-- exception-method -->
|
297
|
+
|
298
|
+
|
299
|
+
</div><!-- public-instance-method-details -->
|
300
|
+
|
301
|
+
</div><!-- 5Buntitled-5D -->
|
302
|
+
|
303
|
+
|
304
|
+
</div><!-- documentation -->
|
305
|
+
|
306
|
+
<div id="validator-badges">
|
307
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
308
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
309
|
+
Rdoc Generator</a> 2</small>.</p>
|
310
|
+
</div>
|
311
|
+
|
312
|
+
</body>
|
313
|
+
</html>
|
314
|
+
|
@@ -0,0 +1,138 @@
|
|
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: Grizzled::Rails::Logger::Railtie</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../../../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="../../../index.html">Home</a>
|
25
|
+
<a href="../../../index.html#classes">Classes</a>
|
26
|
+
<a href="../../../index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="../../../lib/grizzled/rails/logger_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/grizzled/rails/logger.rb">lib/grizzled/rails/logger.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">Rails::Railtie</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
<div id="project-metadata">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
<div id="classindex-section" class="section project-section">
|
72
|
+
<h3 class="section-header">Class/Module Index
|
73
|
+
<span class="search-toggle"><img src="../../../images/find.png"
|
74
|
+
height="16" width="16" alt="[+]"
|
75
|
+
title="show/hide quicksearch" /></span></h3>
|
76
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
77
|
+
<fieldset>
|
78
|
+
<legend>Quicksearch</legend>
|
79
|
+
<input type="text" name="quicksearch" value=""
|
80
|
+
class="quicksearch-field" />
|
81
|
+
</fieldset>
|
82
|
+
</form>
|
83
|
+
|
84
|
+
<ul class="link-list">
|
85
|
+
|
86
|
+
<li><a href="../../../Grizzled.html">Grizzled</a></li>
|
87
|
+
|
88
|
+
<li><a href="../../../Grizzled/Rails.html">Grizzled::Rails</a></li>
|
89
|
+
|
90
|
+
<li><a href="../../../Grizzled/Rails/Logger.html">Grizzled::Rails::Logger</a></li>
|
91
|
+
|
92
|
+
<li><a href="../../../Grizzled/Rails/Logger/Railtie.html">Grizzled::Rails::Logger::Railtie</a></li>
|
93
|
+
|
94
|
+
</ul>
|
95
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<div id="documentation">
|
103
|
+
<h1 class="class">Grizzled::Rails::Logger::Railtie</h1>
|
104
|
+
|
105
|
+
<div id="description" class="description">
|
106
|
+
|
107
|
+
<p>Bind it into <a href="../../Rails.html">Rails</a>.</p>
|
108
|
+
|
109
|
+
</div><!-- description -->
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<!-- Methods -->
|
124
|
+
|
125
|
+
</div><!-- 5Buntitled-5D -->
|
126
|
+
|
127
|
+
|
128
|
+
</div><!-- documentation -->
|
129
|
+
|
130
|
+
<div id="validator-badges">
|
131
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
132
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
133
|
+
Rdoc Generator</a> 2</small>.</p>
|
134
|
+
</div>
|
135
|
+
|
136
|
+
</body>
|
137
|
+
</html>
|
138
|
+
|