grizzled-rails-logger 0.1.2 → 0.1.3
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/CHANGELOG.md +9 -0
- data/README.md +6 -1
- data/grizzled-rails-logger.gemspec +2 -2
- data/lib/grizzled/rails/logger.rb +10 -10
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
Version 0.1.3
|
4
|
+
|
5
|
+
Now works with Ruby 1.8.7, as well as Ruby 1.9. Addresses [Issue 1][issue1].
|
6
|
+
(Still requires Rails 3, however.)
|
7
|
+
|
8
|
+
[issue1]: https://github.com/bmc/grizzled-rails-logger/issues/1
|
9
|
+
|
10
|
+
---
|
11
|
+
|
3
12
|
Version 0.1.2
|
4
13
|
|
5
14
|
Backtrace dump now includes message that's in the exception.
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ capabilities, including:
|
|
12
12
|
* The ability to include the PID in each message.
|
13
13
|
* The ability to flatten the log output, removing spurious newlines, so that
|
14
14
|
each message occupies only one line.
|
15
|
-
* An
|
15
|
+
* An`exception` message that dumps an exception backtrace to the log
|
16
16
|
|
17
17
|
# Installation for Rails 3
|
18
18
|
|
@@ -24,6 +24,11 @@ If you want the development version of the gem, use:
|
|
24
24
|
|
25
25
|
gem 'grizzled-rails-logger', :git => 'git://github.com/bmc/grizzled-rails-logger.git'
|
26
26
|
|
27
|
+
# Caveats
|
28
|
+
|
29
|
+
This gem currently only works with Ruby 1.9. If there's a big enough hue and
|
30
|
+
cry, I'll patch it to work with Ruby 1.8.7, but I'd rather not.
|
31
|
+
|
27
32
|
# Documentation
|
28
33
|
|
29
34
|
Complete documentation for this software is available on the
|
@@ -17,18 +17,18 @@ module Grizzled # :nodoc:
|
|
17
17
|
|
18
18
|
# Configuration constants
|
19
19
|
Configuration = OpenStruct.new(
|
20
|
-
|
21
|
-
|
20
|
+
:format => '[%T] (%S) %P %M',
|
21
|
+
:timeformat => '%Y/%m/%d %H:%M:%S',
|
22
|
+
:colorize => true,
|
23
|
+
:flatten => true,
|
24
|
+
:flatten_patterns => [
|
22
25
|
/.*/
|
23
26
|
],
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
warn: Term::ANSIColor.yellow + Term::ANSIColor.bold,
|
30
|
-
fatal: Term::ANSIColor.red + Term::ANSIColor.bold,
|
31
|
-
error: Term::ANSIColor.red
|
27
|
+
:colors => {
|
28
|
+
:debug => Term::ANSIColor.cyan,
|
29
|
+
:warn => Term::ANSIColor.yellow + Term::ANSIColor.bold,
|
30
|
+
:fatal => Term::ANSIColor.red + Term::ANSIColor.bold,
|
31
|
+
:error => Term::ANSIColor.red
|
32
32
|
}
|
33
33
|
)
|
34
34
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grizzled-rails-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: term-ansicolor
|
16
|
-
requirement: &
|
16
|
+
requirement: &14874580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 1.0.7
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *14874580
|
25
25
|
description: ! 'A custom Rails 3 logger
|
26
26
|
|
27
27
|
'
|