lumberjack 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/MIT_LICENSE +20 -0
  2. data/README.rdoc +86 -0
  3. data/Rakefile +56 -0
  4. data/VERSION +1 -0
  5. data/lib/lumberjack.rb +39 -0
  6. data/lib/lumberjack/device.rb +26 -0
  7. data/lib/lumberjack/device/date_rolling_log_file.rb +58 -0
  8. data/lib/lumberjack/device/log_file.rb +18 -0
  9. data/lib/lumberjack/device/null.rb +15 -0
  10. data/lib/lumberjack/device/rolling_log_file.rb +109 -0
  11. data/lib/lumberjack/device/size_rolling_log_file.rb +58 -0
  12. data/lib/lumberjack/device/writer.rb +119 -0
  13. data/lib/lumberjack/formatter.rb +76 -0
  14. data/lib/lumberjack/formatter/exception_formatter.rb +12 -0
  15. data/lib/lumberjack/formatter/inspect_formatter.rb +10 -0
  16. data/lib/lumberjack/formatter/pretty_print_formatter.rb +23 -0
  17. data/lib/lumberjack/formatter/string_formatter.rb +10 -0
  18. data/lib/lumberjack/log_entry.rb +36 -0
  19. data/lib/lumberjack/logger.rb +302 -0
  20. data/lib/lumberjack/rack.rb +5 -0
  21. data/lib/lumberjack/rack/unit_of_work.rb +15 -0
  22. data/lib/lumberjack/severity.rb +23 -0
  23. data/lib/lumberjack/template.rb +71 -0
  24. data/spec/device/date_rolling_log_file_spec.rb +66 -0
  25. data/spec/device/date_rolling_log_file_spec.rbc +2118 -0
  26. data/spec/device/log_file_spec.rb +26 -0
  27. data/spec/device/log_file_spec.rbc +727 -0
  28. data/spec/device/null_spec.rb +12 -0
  29. data/spec/device/null_spec.rbc +362 -0
  30. data/spec/device/rolling_log_file_spec.rb +117 -0
  31. data/spec/device/rolling_log_file_spec.rbc +2894 -0
  32. data/spec/device/size_rolling_log_file_spec.rb +54 -0
  33. data/spec/device/size_rolling_log_file_spec.rbc +1961 -0
  34. data/spec/device/stream_spec.rbc +3310 -0
  35. data/spec/device/writer_spec.rb +118 -0
  36. data/spec/entry_spec.rbc +2333 -0
  37. data/spec/formatter/exception_formatter_spec.rb +20 -0
  38. data/spec/formatter/exception_formatter_spec.rbc +620 -0
  39. data/spec/formatter/inspect_formatter_spec.rb +13 -0
  40. data/spec/formatter/inspect_formatter_spec.rbc +360 -0
  41. data/spec/formatter/pretty_print_formatter_spec.rb +14 -0
  42. data/spec/formatter/pretty_print_formatter_spec.rbc +380 -0
  43. data/spec/formatter/string_formatter_spec.rb +12 -0
  44. data/spec/formatter/string_formatter_spec.rbc +314 -0
  45. data/spec/formatter_spec.rb +45 -0
  46. data/spec/formatter_spec.rbc +1431 -0
  47. data/spec/log_entry_spec.rb +69 -0
  48. data/spec/logger_spec.rb +390 -0
  49. data/spec/logger_spec.rbc +10043 -0
  50. data/spec/lumberjack_spec.rb +22 -0
  51. data/spec/lumberjack_spec.rbc +523 -0
  52. data/spec/rack/unit_of_work_spec.rb +26 -0
  53. data/spec/rack/unit_of_work_spec.rbc +697 -0
  54. data/spec/severity_spec.rb +23 -0
  55. data/spec/spec_helper.rb +16 -0
  56. data/spec/spec_helper.rbc +391 -0
  57. data/spec/template_spec.rb +34 -0
  58. data/spec/template_spec.rbc +1563 -0
  59. data/spec/unique_identifier_spec.rbc +329 -0
  60. metadata +128 -0
@@ -0,0 +1,329 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 24
13
+ 5
14
+ 7
15
+ 0
16
+ 64
17
+ 47
18
+ 49
19
+ 1
20
+ 1
21
+ 15
22
+ 5
23
+ 45
24
+ 2
25
+ 3
26
+ 43
27
+ 4
28
+ 56
29
+ 5
30
+ 47
31
+ 50
32
+ 6
33
+ 1
34
+ 15
35
+ 2
36
+ 11
37
+ I
38
+ 3
39
+ I
40
+ 0
41
+ I
42
+ 0
43
+ I
44
+ 0
45
+ n
46
+ p
47
+ 7
48
+ s
49
+ 11
50
+ spec_helper
51
+ x
52
+ 7
53
+ require
54
+ x
55
+ 10
56
+ Lumberjack
57
+ n
58
+ x
59
+ 16
60
+ UniqueIdentifier
61
+ M
62
+ 1
63
+ p
64
+ 2
65
+ x
66
+ 9
67
+ for_block
68
+ t
69
+ n
70
+ x
71
+ 9
72
+ __block__
73
+ i
74
+ 11
75
+ 5
76
+ 7
77
+ 0
78
+ 64
79
+ 56
80
+ 1
81
+ 47
82
+ 50
83
+ 2
84
+ 1
85
+ 11
86
+ I
87
+ 4
88
+ I
89
+ 0
90
+ I
91
+ 0
92
+ I
93
+ 0
94
+ I
95
+ -2
96
+ p
97
+ 3
98
+ s
99
+ 40
100
+ should create 12 byte unique identifiers
101
+ M
102
+ 1
103
+ p
104
+ 2
105
+ x
106
+ 9
107
+ for_block
108
+ t
109
+ n
110
+ x
111
+ 9
112
+ __block__
113
+ i
114
+ 100
115
+ 45
116
+ 0
117
+ 1
118
+ 43
119
+ 2
120
+ 13
121
+ 71
122
+ 3
123
+ 47
124
+ 9
125
+ 23
126
+ 47
127
+ 49
128
+ 4
129
+ 0
130
+ 13
131
+ 47
132
+ 49
133
+ 5
134
+ 0
135
+ 15
136
+ 8
137
+ 26
138
+ 49
139
+ 3
140
+ 0
141
+ 19
142
+ 0
143
+ 15
144
+ 45
145
+ 0
146
+ 6
147
+ 43
148
+ 2
149
+ 13
150
+ 71
151
+ 3
152
+ 47
153
+ 9
154
+ 52
155
+ 47
156
+ 49
157
+ 4
158
+ 0
159
+ 13
160
+ 47
161
+ 49
162
+ 5
163
+ 0
164
+ 15
165
+ 8
166
+ 55
167
+ 49
168
+ 3
169
+ 0
170
+ 19
171
+ 1
172
+ 15
173
+ 20
174
+ 0
175
+ 49
176
+ 7
177
+ 0
178
+ 20
179
+ 1
180
+ 83
181
+ 8
182
+ 15
183
+ 20
184
+ 0
185
+ 49
186
+ 9
187
+ 0
188
+ 49
189
+ 10
190
+ 0
191
+ 49
192
+ 11
193
+ 0
194
+ 4
195
+ 24
196
+ 83
197
+ 8
198
+ 15
199
+ 20
200
+ 1
201
+ 49
202
+ 9
203
+ 0
204
+ 49
205
+ 10
206
+ 0
207
+ 49
208
+ 11
209
+ 0
210
+ 4
211
+ 24
212
+ 83
213
+ 8
214
+ 11
215
+ I
216
+ 5
217
+ I
218
+ 2
219
+ I
220
+ 0
221
+ I
222
+ 0
223
+ I
224
+ -2
225
+ p
226
+ 12
227
+ x
228
+ 10
229
+ Lumberjack
230
+ n
231
+ x
232
+ 16
233
+ UniqueIdentifier
234
+ x
235
+ 3
236
+ new
237
+ x
238
+ 8
239
+ allocate
240
+ x
241
+ 10
242
+ initialize
243
+ n
244
+ x
245
+ 10
246
+ should_not
247
+ x
248
+ 2
249
+ ==
250
+ x
251
+ 4
252
+ to_s
253
+ x
254
+ 4
255
+ size
256
+ x
257
+ 6
258
+ should
259
+ p
260
+ 11
261
+ I
262
+ 0
263
+ I
264
+ 6
265
+ I
266
+ 1d
267
+ I
268
+ 7
269
+ I
270
+ 3a
271
+ I
272
+ 8
273
+ I
274
+ 44
275
+ I
276
+ 9
277
+ I
278
+ 54
279
+ I
280
+ a
281
+ I
282
+ 64
283
+ x
284
+ 69
285
+ /Users/bdurand/dev/projects/lumberjack/spec/unique_identifier_spec.rb
286
+ p
287
+ 2
288
+ x
289
+ 4
290
+ id_1
291
+ x
292
+ 4
293
+ id_2
294
+ x
295
+ 2
296
+ it
297
+ p
298
+ 3
299
+ I
300
+ 0
301
+ I
302
+ 5
303
+ I
304
+ b
305
+ x
306
+ 69
307
+ /Users/bdurand/dev/projects/lumberjack/spec/unique_identifier_spec.rb
308
+ p
309
+ 0
310
+ x
311
+ 8
312
+ describe
313
+ p
314
+ 5
315
+ I
316
+ 0
317
+ I
318
+ 1
319
+ I
320
+ 9
321
+ I
322
+ 3
323
+ I
324
+ 18
325
+ x
326
+ 69
327
+ /Users/bdurand/dev/projects/lumberjack/spec/unique_identifier_spec.rb
328
+ p
329
+ 0
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lumberjack
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Brian Durand
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-02-11 00:00:00 -06:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: A simple, powerful, and very fast logging utility that can be a drop in replacement for Logger or ActiveSupport::BufferedLogger. Provides support for automatically rolling log files even with multiple processes writing the same log file.
23
+ email:
24
+ - bdurand@embellishedvisions.com
25
+ executables: []
26
+
27
+ extensions: []
28
+
29
+ extra_rdoc_files:
30
+ - README.rdoc
31
+ files:
32
+ - README.rdoc
33
+ - VERSION
34
+ - Rakefile
35
+ - MIT_LICENSE
36
+ - lib/lumberjack/device/date_rolling_log_file.rb
37
+ - lib/lumberjack/device/log_file.rb
38
+ - lib/lumberjack/device/null.rb
39
+ - lib/lumberjack/device/rolling_log_file.rb
40
+ - lib/lumberjack/device/size_rolling_log_file.rb
41
+ - lib/lumberjack/device/writer.rb
42
+ - lib/lumberjack/device.rb
43
+ - lib/lumberjack/formatter/exception_formatter.rb
44
+ - lib/lumberjack/formatter/inspect_formatter.rb
45
+ - lib/lumberjack/formatter/pretty_print_formatter.rb
46
+ - lib/lumberjack/formatter/string_formatter.rb
47
+ - lib/lumberjack/formatter.rb
48
+ - lib/lumberjack/log_entry.rb
49
+ - lib/lumberjack/logger.rb
50
+ - lib/lumberjack/rack/unit_of_work.rb
51
+ - lib/lumberjack/rack.rb
52
+ - lib/lumberjack/severity.rb
53
+ - lib/lumberjack/template.rb
54
+ - lib/lumberjack.rb
55
+ - spec/device/date_rolling_log_file_spec.rb
56
+ - spec/device/date_rolling_log_file_spec.rbc
57
+ - spec/device/log_file_spec.rb
58
+ - spec/device/log_file_spec.rbc
59
+ - spec/device/null_spec.rb
60
+ - spec/device/null_spec.rbc
61
+ - spec/device/rolling_log_file_spec.rb
62
+ - spec/device/rolling_log_file_spec.rbc
63
+ - spec/device/size_rolling_log_file_spec.rb
64
+ - spec/device/size_rolling_log_file_spec.rbc
65
+ - spec/device/stream_spec.rbc
66
+ - spec/device/writer_spec.rb
67
+ - spec/entry_spec.rbc
68
+ - spec/formatter/exception_formatter_spec.rb
69
+ - spec/formatter/exception_formatter_spec.rbc
70
+ - spec/formatter/inspect_formatter_spec.rb
71
+ - spec/formatter/inspect_formatter_spec.rbc
72
+ - spec/formatter/pretty_print_formatter_spec.rb
73
+ - spec/formatter/pretty_print_formatter_spec.rbc
74
+ - spec/formatter/string_formatter_spec.rb
75
+ - spec/formatter/string_formatter_spec.rbc
76
+ - spec/formatter_spec.rb
77
+ - spec/formatter_spec.rbc
78
+ - spec/log_entry_spec.rb
79
+ - spec/logger_spec.rb
80
+ - spec/logger_spec.rbc
81
+ - spec/lumberjack_spec.rb
82
+ - spec/lumberjack_spec.rbc
83
+ - spec/rack/unit_of_work_spec.rb
84
+ - spec/rack/unit_of_work_spec.rbc
85
+ - spec/severity_spec.rb
86
+ - spec/spec_helper.rb
87
+ - spec/spec_helper.rbc
88
+ - spec/template_spec.rb
89
+ - spec/template_spec.rbc
90
+ - spec/unique_identifier_spec.rbc
91
+ has_rdoc: true
92
+ homepage: http://github.com/bdurand/lumberjack
93
+ licenses: []
94
+
95
+ post_install_message:
96
+ rdoc_options:
97
+ - --charset=UTF-8
98
+ - --main
99
+ - README.rdoc
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ hash: 3
108
+ segments:
109
+ - 0
110
+ version: "0"
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ hash: 3
117
+ segments:
118
+ - 0
119
+ version: "0"
120
+ requirements: []
121
+
122
+ rubyforge_project:
123
+ rubygems_version: 1.5.0
124
+ signing_key:
125
+ specification_version: 3
126
+ summary: A simple, powerful, and very fast logging utility that can be a drop in replacement for Logger or ActiveSupport::BufferedLogger.
127
+ test_files: []
128
+