loggr 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/.travis.yml +12 -0
- data/Appraisals +11 -0
- data/README.md +66 -42
- data/Rakefile +5 -3
- data/gemfiles/activesupport-3.0.x.gemfile +7 -0
- data/gemfiles/activesupport-3.1.gemfile +7 -0
- data/gemfiles/activesupport-head.gemfile +7 -0
- data/lib/loggr.rb +8 -8
- data/lib/loggr/adapter.rb +3 -2
- data/lib/loggr/adapter/abstract.rb +5 -5
- data/lib/loggr/adapter/base.rb +11 -10
- data/lib/loggr/adapter/buffered.rb +6 -4
- data/lib/loggr/adapter/nop.rb +10 -6
- data/lib/loggr/lint.rb +35 -21
- data/lib/loggr/slf4j/logger.rb +39 -16
- data/lib/loggr/slf4j/mdc.rb +9 -9
- data/lib/loggr/support/annotations.rb +40 -0
- data/lib/loggr/version.rb +2 -1
- data/loggr.gemspec +4 -2
- data/test/test_helper.rb +16 -10
- data/test/unit/adapter/base_test.rb +14 -14
- data/test/unit/adapter/buffered_test.rb +11 -11
- data/test/unit/adapter/rails_test.rb +4 -6
- data/test/unit/factory_test.rb +26 -11
- data/test/unit/slf4j/logger_test.rb +62 -26
- metadata +112 -109
@@ -11,47 +11,47 @@ class Loggr::Adapter::BaseTest < MiniTest::Unit::TestCase
|
|
11
11
|
def setup
|
12
12
|
@adapter = Loggr::Adapter::BaseAdapter.new
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
def teardown
|
16
16
|
unlink_log_files
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
include Loggr::Lint::Tests
|
20
|
-
|
20
|
+
|
21
21
|
def test_base_should_be_a_base_adapter
|
22
22
|
assert Loggr::Adapter::Base.is_a?(Loggr::Adapter::BaseAdapter)
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
def test_logger_instance_should_be_a_stdlib_logger_with_level_info
|
26
26
|
@logger = @adapter.logger 'test'
|
27
|
-
assert_kind_of ::Logger, @logger
|
27
|
+
assert_kind_of ::Logger, as_3_2? ? @logger.instance_variable_get('@logger') : @logger
|
28
28
|
assert_same ::Logger::INFO, @logger.level
|
29
29
|
assert_equal 'test', @logger.progname
|
30
30
|
end
|
31
|
-
|
31
|
+
|
32
32
|
def test_logger_should_use_name_as_path
|
33
33
|
@logger = @adapter.logger 'test'
|
34
34
|
assert File.exist?(File.join(ROOT, 'test.log')), "./test.log should exist"
|
35
|
-
|
35
|
+
|
36
36
|
@logger = @adapter.logger 'test name'
|
37
37
|
assert File.exist?(File.join(ROOT, 'test_name.log')), "./test_name.log should exist"
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
def test_logger_should_use_class_name_as_name
|
41
41
|
@logger = @adapter.logger self
|
42
42
|
assert File.exist?(File.join(ROOT, 'Loggr_Adapter_BaseTest.log')), "./Loggr_Adapter_BaseTest.log should exist"
|
43
43
|
end
|
44
|
-
|
44
|
+
|
45
45
|
def test_should_allow_to_option_to_provide_path
|
46
46
|
@logger = @adapter.logger 'test', :to => "other.log"
|
47
|
-
assert File.exist?(File.join(ROOT, 'other.log')), "./other.log should exist"
|
47
|
+
assert File.exist?(File.join(ROOT, 'other.log')), "./other.log should exist"
|
48
48
|
end
|
49
|
-
|
49
|
+
|
50
50
|
def test_should_setting_level_via_options
|
51
51
|
@logger = @adapter.logger 'test', :level => ::Logger::ERROR
|
52
52
|
assert_same ::Logger::ERROR, @logger.level
|
53
53
|
end
|
54
|
-
|
54
|
+
|
55
55
|
def test_normalize_name_converts_all_inputs_to_sane_strings
|
56
56
|
assert_equal "logger", @adapter.send(:normalize_name, "logger")
|
57
57
|
assert_equal "logger", @adapter.send(:normalize_name, :logger)
|
@@ -60,6 +60,6 @@ class Loggr::Adapter::BaseTest < MiniTest::Unit::TestCase
|
|
60
60
|
assert_equal "Loggr::Adapter::BaseTest", @adapter.send(:normalize_name, self)
|
61
61
|
assert_equal "ATestModule", @adapter.send(:normalize_name, ATestModule)
|
62
62
|
assert_equal "ATestModule::ATestClass", @adapter.send(:normalize_name, ATestModule::ATestClass)
|
63
|
-
assert_equal "ATestModule::ATestClass", @adapter.send(:normalize_name, ATestModule::ATestClass.new)
|
64
|
-
end
|
63
|
+
assert_equal "ATestModule::ATestClass", @adapter.send(:normalize_name, ATestModule::ATestClass.new)
|
64
|
+
end
|
65
65
|
end
|
@@ -3,40 +3,40 @@ require 'loggr/lint'
|
|
3
3
|
require 'loggr/adapter/buffered'
|
4
4
|
|
5
5
|
class Loggr::Adapter::BufferedTest < MiniTest::Unit::TestCase
|
6
|
-
|
6
|
+
|
7
7
|
def setup
|
8
8
|
@adapter = Loggr::Adapter::BufferedAdapter.new
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
def teardown
|
12
12
|
unlink_log_files
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
include Loggr::Lint::Tests
|
16
|
-
|
16
|
+
|
17
17
|
def test_buffered_should_be_a_buffered_adapter
|
18
18
|
assert_kind_of Loggr::Adapter::BufferedAdapter, Loggr::Adapter::Buffered
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
def test_logger_instance_should_be_a_buffered_logger_with_level_debug
|
22
22
|
@logger = @adapter.logger 'test'
|
23
|
-
assert_kind_of ActiveSupport::BufferedLogger, @logger
|
23
|
+
assert_kind_of ActiveSupport::BufferedLogger, as_3_2? ? @logger.instance_variable_get('@logger') : @logger
|
24
24
|
assert_same ActiveSupport::BufferedLogger::INFO, @logger.level
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
def test_logger_should_use_name_as_path
|
28
28
|
@logger = @adapter.logger 'test'
|
29
29
|
assert File.exist?(File.join(ROOT, 'test.log')), "./test.log should not exist"
|
30
|
-
|
30
|
+
|
31
31
|
@logger = @adapter.logger 'test name'
|
32
32
|
assert File.exist?(File.join(ROOT, 'test_name.log')), "./test_name.log should not exist"
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
def test_should_allow_to_option_to_provide_path
|
36
36
|
@logger = @adapter.logger 'test', :to => "other.log"
|
37
|
-
assert File.exist?(File.join(ROOT, 'other.log')), "./other.log should not exist"
|
37
|
+
assert File.exist?(File.join(ROOT, 'other.log')), "./other.log should not exist"
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
def test_should_setting_level_via_options
|
41
41
|
@logger = @adapter.logger 'test', :level => ActiveSupport::BufferedLogger::ERROR
|
42
42
|
assert_same ActiveSupport::BufferedLogger::ERROR, @logger.level
|
@@ -17,22 +17,20 @@ class Loggr::Adapter::RailsTest < MiniTest::Unit::TestCase
|
|
17
17
|
Object.const_set(:Rails, ::MockRails)
|
18
18
|
@adapter = Loggr::Adapter::RailsAdapter.new
|
19
19
|
end
|
20
|
-
|
21
|
-
include Loggr::Lint::Tests
|
22
|
-
|
20
|
+
|
23
21
|
def test_rails_should_be_a_rails_adapter
|
24
22
|
assert_kind_of Loggr::Adapter::RailsAdapter, Loggr::Adapter::Rails
|
25
23
|
end
|
26
|
-
|
24
|
+
|
27
25
|
def test_should_use_same_logger_as_rails
|
28
26
|
assert_equal ::Rails.logger, Loggr::Adapter::Rails.logger('log')
|
29
27
|
end
|
30
|
-
|
28
|
+
|
31
29
|
def test_should_default_to_rails_adapter
|
32
30
|
clazz = Class.new do
|
33
31
|
extend Loggr::Adapter
|
34
32
|
end
|
35
|
-
|
33
|
+
|
36
34
|
assert_equal Loggr::Adapter::Rails, clazz.adapter
|
37
35
|
end
|
38
36
|
end
|
data/test/unit/factory_test.rb
CHANGED
@@ -19,39 +19,54 @@ class Loggr::FactoryTest < MiniTest::Unit::TestCase
|
|
19
19
|
@adapter = LoggerFactory # lint it!
|
20
20
|
@adapter.adapter = Loggr::Adapter::Base
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
def teardown
|
24
24
|
unlink_log_files
|
25
|
-
end
|
25
|
+
end
|
26
26
|
|
27
27
|
def test_default_adapter_is_base
|
28
28
|
assert_equal @factory.adapter, Loggr::Adapter::Base
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
def test_change_adapter_using_symbol
|
32
32
|
@factory.adapter = :buffered
|
33
33
|
assert_equal @factory.adapter, Loggr::Adapter::Buffered
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
def test_change_adapter_to_slf4j_using_symbol
|
37
|
-
skip_unless_jruby
|
37
|
+
skip_unless_jruby
|
38
38
|
@factory.adapter = :slf4j
|
39
|
-
assert_equal @factory.adapter, Loggr::Adapter::SLF4J
|
39
|
+
assert_equal @factory.adapter, Loggr::Adapter::SLF4J
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
def test_change_adapter_using_string
|
43
43
|
@factory.adapter = 'NOP'
|
44
|
-
assert_equal @factory.adapter, Loggr::Adapter::NOP
|
44
|
+
assert_equal @factory.adapter, Loggr::Adapter::NOP
|
45
|
+
end
|
46
|
+
|
47
|
+
def test_change_adapter_to_nop
|
48
|
+
@factory.adapter = :nop
|
49
|
+
assert_equal @factory.adapter, Loggr::Adapter::NOP
|
45
50
|
end
|
46
|
-
|
51
|
+
|
52
|
+
def test_change_adapter_to_nop_by_using_nil
|
53
|
+
@factory.adapter = nil
|
54
|
+
assert_equal @factory.adapter, Loggr::Adapter::NOP
|
55
|
+
end
|
56
|
+
|
57
|
+
def test_change_adapter_to_nop_by_using_false
|
58
|
+
@factory.adapter = false
|
59
|
+
assert_equal @factory.adapter, Loggr::Adapter::NOP
|
60
|
+
end
|
61
|
+
|
47
62
|
def test_change_adapter_to_instance
|
48
63
|
@factory.adapter = Mocks::MyAdapter.new
|
49
64
|
assert_kind_of Mocks::MyAdapter, @factory.adapter
|
50
65
|
end
|
51
|
-
|
66
|
+
|
52
67
|
# Lint LoggerFactory, should work the same as an adapter
|
53
68
|
include Loggr::Lint::Tests
|
54
|
-
|
69
|
+
|
55
70
|
# Ensure class
|
56
71
|
def test_logger_factory
|
57
72
|
singleton_class = (class << LoggerFactory; self end)
|
@@ -9,15 +9,15 @@ class Loggr::SLF4J::LoggerTest < MiniTest::Unit::TestCase
|
|
9
9
|
@logger = Loggr::SLF4J::Logger.new('test')
|
10
10
|
end
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def test_setting_logger_name
|
14
14
|
skip_unless_jruby
|
15
15
|
assert_equal 'test', @logger.java_logger.getName()
|
16
|
-
assert_equal 'test', Loggr::SLF4J::Logger.new(:test).java_logger.getName()
|
17
|
-
assert_equal 'test/fancy::Logger', Loggr::SLF4J::Logger.new(:'test/fancy::Logger').java_logger.getName()
|
16
|
+
assert_equal 'test', Loggr::SLF4J::Logger.new(:test).java_logger.getName()
|
17
|
+
assert_equal 'test/fancy::Logger', Loggr::SLF4J::Logger.new(:'test/fancy::Logger').java_logger.getName()
|
18
18
|
assert_equal 'test.Logger', Loggr::SLF4J::Logger.new('test.Logger').java_logger.getName()
|
19
19
|
assert_equal 'Loggr::SLF4J', Loggr::SLF4J::Logger.new('Loggr::SLF4J').java_logger.getName()
|
20
|
-
assert_equal 'Loggr::SLF4J/basic', Loggr::SLF4J::Logger.new('Loggr::SLF4J/basic').java_logger.getName()
|
20
|
+
assert_equal 'Loggr::SLF4J/basic', Loggr::SLF4J::Logger.new('Loggr::SLF4J/basic').java_logger.getName()
|
21
21
|
assert_equal 'loggr.slf4j.LoggerTest', Loggr::SLF4J::Logger.new(self).java_logger.getName()
|
22
22
|
assert_equal 'loggr.slf4j.LoggerTest', Loggr::SLF4J::Logger.new(self.class).java_logger.getName()
|
23
23
|
assert_equal 'loggr.SLF4J', Loggr::SLF4J::Logger.new(Loggr::SLF4J).java_logger.getName()
|
@@ -30,19 +30,19 @@ class Loggr::SLF4J::LoggerTest < MiniTest::Unit::TestCase
|
|
30
30
|
assert_respond_to @logger, "#{level}?"
|
31
31
|
end
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
def test_should_respond_to_close_and_flush
|
35
35
|
skip_unless_jruby
|
36
36
|
assert_respond_to @logger, :close
|
37
|
-
assert_respond_to @logger, :flush
|
38
|
-
end
|
39
|
-
|
37
|
+
assert_respond_to @logger, :flush
|
38
|
+
end
|
39
|
+
|
40
40
|
def test_trace_message
|
41
41
|
skip_unless_jruby
|
42
42
|
@logger.trace "a trace message"
|
43
43
|
assert_log_event 5000, "a trace message", @appender.last
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
def test_debug_message
|
47
47
|
skip_unless_jruby
|
48
48
|
@logger.debug "a debug message"
|
@@ -52,25 +52,25 @@ class Loggr::SLF4J::LoggerTest < MiniTest::Unit::TestCase
|
|
52
52
|
def test_info_message
|
53
53
|
skip_unless_jruby
|
54
54
|
@logger.info "an info message"
|
55
|
-
assert_log_event 20000, "an info message", @appender.last
|
55
|
+
assert_log_event 20000, "an info message", @appender.last
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
58
|
def test_warn_message
|
59
59
|
skip_unless_jruby
|
60
60
|
@logger.warn "a warn message"
|
61
|
-
assert_log_event 30000, "a warn message", @appender.last
|
61
|
+
assert_log_event 30000, "a warn message", @appender.last
|
62
62
|
end
|
63
63
|
|
64
64
|
def test_error_message
|
65
65
|
skip_unless_jruby
|
66
66
|
@logger.error "an error message"
|
67
|
-
assert_log_event 40000, "an error message", @appender.last
|
67
|
+
assert_log_event 40000, "an error message", @appender.last
|
68
68
|
end
|
69
69
|
|
70
70
|
def test_fatal_message
|
71
71
|
skip_unless_jruby
|
72
72
|
@logger.fatal "a fatal message"
|
73
|
-
assert_log_event 40000, "a fatal message", @appender.last
|
73
|
+
assert_log_event 40000, "a fatal message", @appender.last
|
74
74
|
end
|
75
75
|
|
76
76
|
def test_logging_message_using_block
|
@@ -78,59 +78,95 @@ class Loggr::SLF4J::LoggerTest < MiniTest::Unit::TestCase
|
|
78
78
|
@logger.info { "block info message" }
|
79
79
|
assert_log_event 20000, "block info message", @appender.last
|
80
80
|
end
|
81
|
-
|
81
|
+
|
82
82
|
def test_default_logger_has_no_marker
|
83
83
|
skip_unless_jruby
|
84
84
|
@logger.info "no marker"
|
85
85
|
assert_equal nil, @appender.last.getMarker()
|
86
86
|
end
|
87
|
-
|
87
|
+
|
88
88
|
def test_use_progname_as_marker
|
89
89
|
skip_unless_jruby
|
90
90
|
@logger.info "with marker", "MARK"
|
91
91
|
assert_equal "MARK", @appender.last.getMarker().to_s
|
92
|
-
|
92
|
+
|
93
93
|
@logger.debug "other marker", "KRAM"
|
94
94
|
assert_equal "KRAM", @appender.last.getMarker().to_s
|
95
95
|
end
|
96
|
-
|
96
|
+
|
97
97
|
def test_ability_to_provide_default_marker
|
98
98
|
skip_unless_jruby
|
99
99
|
@other = Loggr::SLF4J::Logger.new('test.marker', :marker => "MARK")
|
100
100
|
|
101
101
|
@other.info "no marker"
|
102
102
|
assert_equal "MARK", @appender.last.getMarker().to_s
|
103
|
-
|
103
|
+
|
104
104
|
@other.debug "other marker", "KRAM"
|
105
105
|
assert_equal "KRAM", @appender.last.getMarker().to_s
|
106
106
|
end
|
107
|
-
|
107
|
+
|
108
108
|
def test_level_should_be_unknown
|
109
109
|
skip_unless_jruby
|
110
110
|
assert_equal Loggr::SLF4J::Logger::UNKNOWN, @logger.level
|
111
111
|
end
|
112
|
-
|
112
|
+
|
113
|
+
def test_support_for_nested_tagged_calls
|
114
|
+
skip_unless_jruby
|
115
|
+
assert_nil @logger.java_mdc[:tags]
|
116
|
+
@logger.tagged("demo") do
|
117
|
+
assert_equal "demo", @logger.java_mdc[:tags]
|
118
|
+
@logger.tagged("action", "test") do
|
119
|
+
assert_equal "demo, action, test", @logger.java_mdc[:tags]
|
120
|
+
end
|
121
|
+
assert_equal "demo", @logger.java_mdc[:tags]
|
122
|
+
end
|
123
|
+
assert_nil @logger.java_mdc[:tags]
|
124
|
+
end
|
125
|
+
|
126
|
+
def test_that_tagged_also_accepts_array
|
127
|
+
skip_unless_jruby
|
128
|
+
@logger.tagged(%w{a b c}) do
|
129
|
+
assert_equal "a, b, c", @logger.java_mdc[:tags]
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
def test_support_for_nested_mapped_calls
|
134
|
+
skip_unless_jruby
|
135
|
+
@logger.mapped(:user => "demo") do
|
136
|
+
assert_equal({ "user" => "demo" }, @logger.java_mdc.to_hash)
|
137
|
+
@logger.mapped(:request_id => "123456", :auth => "secure") do
|
138
|
+
assert_equal({ "user" => "demo", "request_id" => "123456", "auth" => "secure" }, @logger.java_mdc.to_hash)
|
139
|
+
@logger.mapped(:user => "system") do
|
140
|
+
assert_equal({ "user" => "system", "request_id" => "123456", "auth" => "secure" }, @logger.java_mdc.to_hash)
|
141
|
+
end
|
142
|
+
assert_equal({ "user" => "demo", "request_id" => "123456", "auth" => "secure" }, @logger.java_mdc.to_hash)
|
143
|
+
end
|
144
|
+
assert_equal({ "user" => "demo" }, @logger.java_mdc.to_hash)
|
145
|
+
end
|
146
|
+
assert_equal Hash.new, @logger.java_mdc.to_hash
|
147
|
+
end
|
148
|
+
|
113
149
|
def test_java_logger
|
114
150
|
skip_unless_jruby
|
115
151
|
refute_nil @logger.java_logger
|
116
152
|
assert_kind_of Java::OrgSlf4j::Logger, @logger.java_logger
|
117
153
|
end
|
118
|
-
|
154
|
+
|
119
155
|
def test_java_marker
|
120
156
|
skip_unless_jruby
|
121
157
|
assert_nil @logger.java_marker
|
122
|
-
|
158
|
+
|
123
159
|
@other = Loggr::SLF4J::Logger.new('test.marker', :marker => 'APP')
|
124
160
|
refute_nil @other.java_marker
|
125
|
-
assert_kind_of Java::OrgSlf4j::Marker, @other.java_marker
|
161
|
+
assert_kind_of Java::OrgSlf4j::Marker, @other.java_marker
|
126
162
|
end
|
127
|
-
|
163
|
+
|
128
164
|
def test_internal_marker_factory
|
129
165
|
skip_unless_jruby
|
130
166
|
assert_nil Loggr::SLF4J::MarkerFactory[nil]
|
131
167
|
assert_nil Loggr::SLF4J::MarkerFactory[' ']
|
132
168
|
assert_nil Loggr::SLF4J::MarkerFactory[""]
|
133
|
-
|
169
|
+
|
134
170
|
@marker = Loggr::SLF4J::MarkerFactory["MARK"]
|
135
171
|
refute_nil @marker
|
136
172
|
assert_kind_of Java::OrgSlf4j::Marker, @marker
|
metadata
CHANGED
@@ -1,58 +1,65 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loggr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
5
|
+
version: 1.1.0
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
|
-
- Lukas Westermann
|
8
|
+
- Lukas Westermann
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-
|
13
|
+
date: 2011-11-30 00:00:00 +01:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
-
|
50
|
-
|
51
|
-
|
52
|
-
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rake
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.8.7
|
25
|
+
type: :development
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 2.3.0
|
36
|
+
type: :development
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: activesupport
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.0.0
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: appraisal
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 0.3.8
|
58
|
+
type: :development
|
59
|
+
version_requirements: *id004
|
53
60
|
description: Adapters for different ruby logging backends. Create loggers using different adapters, like Logger (Stdlib), Rails or SLF4J (in JRuby only).
|
54
61
|
email:
|
55
|
-
- lukas@at-point.ch
|
62
|
+
- lukas@at-point.ch
|
56
63
|
executables: []
|
57
64
|
|
58
65
|
extensions: []
|
@@ -60,44 +67,50 @@ extensions: []
|
|
60
67
|
extra_rdoc_files: []
|
61
68
|
|
62
69
|
files:
|
63
|
-
- .gitignore
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
-
|
74
|
-
- lib/
|
75
|
-
- lib/
|
76
|
-
- lib/loggr
|
77
|
-
- lib/loggr/adapter
|
78
|
-
- lib/loggr/adapter/
|
79
|
-
- lib/loggr/
|
80
|
-
- lib/loggr/
|
81
|
-
- lib/loggr/
|
82
|
-
- lib/loggr/
|
83
|
-
- lib/loggr/slf4j
|
84
|
-
- lib/loggr/
|
85
|
-
- lib/loggr/
|
86
|
-
- lib/loggr/
|
87
|
-
- lib/slf4j
|
88
|
-
- loggr.
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
- test/
|
96
|
-
- test/
|
97
|
-
- test/unit/
|
98
|
-
- test/unit/
|
99
|
-
- test/unit/
|
100
|
-
- test/unit/
|
70
|
+
- .gitignore
|
71
|
+
- .travis.yml
|
72
|
+
- Appraisals
|
73
|
+
- Gemfile
|
74
|
+
- LICENSES.md
|
75
|
+
- MIT-LICENSE
|
76
|
+
- README.md
|
77
|
+
- Rakefile
|
78
|
+
- gemfiles/activesupport-3.0.x.gemfile
|
79
|
+
- gemfiles/activesupport-3.1.gemfile
|
80
|
+
- gemfiles/activesupport-head.gemfile
|
81
|
+
- lib/logback-classic-0.9.29.jar
|
82
|
+
- lib/logback-core-0.9.29.jar
|
83
|
+
- lib/loggr.rb
|
84
|
+
- lib/loggr/adapter.rb
|
85
|
+
- lib/loggr/adapter/abstract.rb
|
86
|
+
- lib/loggr/adapter/base.rb
|
87
|
+
- lib/loggr/adapter/buffered.rb
|
88
|
+
- lib/loggr/adapter/nop.rb
|
89
|
+
- lib/loggr/adapter/rails.rb
|
90
|
+
- lib/loggr/adapter/slf4j.rb
|
91
|
+
- lib/loggr/factory.rb
|
92
|
+
- lib/loggr/lint.rb
|
93
|
+
- lib/loggr/severity.rb
|
94
|
+
- lib/loggr/slf4j.rb
|
95
|
+
- lib/loggr/slf4j/jars.rb
|
96
|
+
- lib/loggr/slf4j/logger.rb
|
97
|
+
- lib/loggr/slf4j/mdc.rb
|
98
|
+
- lib/loggr/support/annotations.rb
|
99
|
+
- lib/loggr/version.rb
|
100
|
+
- lib/slf4j-api-1.6.1.jar
|
101
|
+
- loggr.gemspec
|
102
|
+
- test/logback_helper.rb
|
103
|
+
- test/test_helper.rb
|
104
|
+
- test/unit/adapter/abstract_test.rb
|
105
|
+
- test/unit/adapter/base_test.rb
|
106
|
+
- test/unit/adapter/buffered_test.rb
|
107
|
+
- test/unit/adapter/nop_test.rb
|
108
|
+
- test/unit/adapter/rails_test.rb
|
109
|
+
- test/unit/adapter/slf4j_test.rb
|
110
|
+
- test/unit/factory_test.rb
|
111
|
+
- test/unit/slf4j/jars_test.rb
|
112
|
+
- test/unit/slf4j/logger_test.rb
|
113
|
+
- test/unit/slf4j/mdc_test.rb
|
101
114
|
has_rdoc: true
|
102
115
|
homepage: https://github.com/at-point/loggr/wiki
|
103
116
|
licenses: []
|
@@ -106,46 +119,36 @@ post_install_message:
|
|
106
119
|
rdoc_options: []
|
107
120
|
|
108
121
|
require_paths:
|
109
|
-
- lib
|
122
|
+
- lib
|
110
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
111
124
|
none: false
|
112
125
|
requirements:
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
segments:
|
117
|
-
- 1
|
118
|
-
- 8
|
119
|
-
- 7
|
120
|
-
version: 1.8.7
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: 1.8.7
|
121
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
130
|
none: false
|
123
131
|
requirements:
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
segments:
|
128
|
-
- 1
|
129
|
-
- 3
|
130
|
-
- 6
|
131
|
-
version: 1.3.6
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 1.3.6
|
132
135
|
requirements: []
|
133
136
|
|
134
137
|
rubyforge_project:
|
135
|
-
rubygems_version: 1.
|
138
|
+
rubygems_version: 1.5.1
|
136
139
|
signing_key:
|
137
140
|
specification_version: 3
|
138
141
|
summary: Logger factory framework (including an SLF4J wrapper)
|
139
142
|
test_files:
|
140
|
-
- test/logback_helper.rb
|
141
|
-
- test/test_helper.rb
|
142
|
-
- test/unit/adapter/abstract_test.rb
|
143
|
-
- test/unit/adapter/base_test.rb
|
144
|
-
- test/unit/adapter/buffered_test.rb
|
145
|
-
- test/unit/adapter/nop_test.rb
|
146
|
-
- test/unit/adapter/rails_test.rb
|
147
|
-
- test/unit/adapter/slf4j_test.rb
|
148
|
-
- test/unit/factory_test.rb
|
149
|
-
- test/unit/slf4j/jars_test.rb
|
150
|
-
- test/unit/slf4j/logger_test.rb
|
151
|
-
- test/unit/slf4j/mdc_test.rb
|
143
|
+
- test/logback_helper.rb
|
144
|
+
- test/test_helper.rb
|
145
|
+
- test/unit/adapter/abstract_test.rb
|
146
|
+
- test/unit/adapter/base_test.rb
|
147
|
+
- test/unit/adapter/buffered_test.rb
|
148
|
+
- test/unit/adapter/nop_test.rb
|
149
|
+
- test/unit/adapter/rails_test.rb
|
150
|
+
- test/unit/adapter/slf4j_test.rb
|
151
|
+
- test/unit/factory_test.rb
|
152
|
+
- test/unit/slf4j/jars_test.rb
|
153
|
+
- test/unit/slf4j/logger_test.rb
|
154
|
+
- test/unit/slf4j/mdc_test.rb
|