slf4j 1.6-java
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/History.rdoc +24 -0
- data/Manifest.txt +16 -0
- data/README.rdoc +56 -0
- data/Rakefile +45 -0
- data/lib/slf4j.rb +28 -0
- data/lib/slf4j/base.rb +27 -0
- data/lib/slf4j/jcl-over-slf4j.rb +2 -0
- data/lib/slf4j/jcl.rb +2 -0
- data/lib/slf4j/jdk14.rb +2 -0
- data/lib/slf4j/jul-to-slf4j.rb +2 -0
- data/lib/slf4j/jul.rb +2 -0
- data/lib/slf4j/log4j-over-slf4j.rb +2 -0
- data/lib/slf4j/log4j12.rb +2 -0
- data/lib/slf4j/nop.rb +2 -0
- data/lib/slf4j/simple.rb +2 -0
- data/test/test_slf4j.rb +49 -0
- metadata +99 -0
data/History.rdoc
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
=== 1.6 (2011-5-19)
|
2
|
+
* Re-release under the "slf4j" name as a simple wrapper for
|
3
|
+
rjack-slf4j ~> 1.6.1.
|
4
|
+
|
5
|
+
=== 1.5.6.3 (2009-4-25)
|
6
|
+
* Added SLF4J::JUL for controlling java.util.logging, including
|
7
|
+
JUL.replace_root_handlers which removes all existing handlers and
|
8
|
+
add SLF4JBridgeHandler for exclusive routing to SLF4J for use with
|
9
|
+
'jul-to-slf4j'.
|
10
|
+
* Added require 'slf4j' to each adapter loader.
|
11
|
+
* Use rdoc 2.4.3 and hoe 1.12.2 for build.
|
12
|
+
|
13
|
+
=== 1.5.6.2 (2009-4-4)
|
14
|
+
* Fixed previously lost rdoc due to base vs slf4j.rb manifest order.
|
15
|
+
|
16
|
+
=== 1.5.6.1 (2008-12-6)
|
17
|
+
* Upgraded to SLF4J 1.5.6
|
18
|
+
* SLF4JBase -rename-> SLF4J
|
19
|
+
|
20
|
+
=== 1.5.5.1 (2008-11-1)
|
21
|
+
* Upgraded to SLF4J 1.5.5
|
22
|
+
|
23
|
+
=== 1.5.3.1 (2008-10-8)
|
24
|
+
* Initial release based on SLF4J 1.5.3
|
data/Manifest.txt
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Manifest.txt
|
2
|
+
README.rdoc
|
3
|
+
History.rdoc
|
4
|
+
Rakefile
|
5
|
+
lib/slf4j/base.rb
|
6
|
+
lib/slf4j.rb
|
7
|
+
test/test_slf4j.rb
|
8
|
+
lib/slf4j/jcl-over-slf4j.rb
|
9
|
+
lib/slf4j/jcl.rb
|
10
|
+
lib/slf4j/jdk14.rb
|
11
|
+
lib/slf4j/jul-to-slf4j.rb
|
12
|
+
lib/slf4j/jul.rb
|
13
|
+
lib/slf4j/log4j-over-slf4j.rb
|
14
|
+
lib/slf4j/log4j12.rb
|
15
|
+
lib/slf4j/nop.rb
|
16
|
+
lib/slf4j/simple.rb
|
data/README.rdoc
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
= slf4j
|
2
|
+
|
3
|
+
* http://rjack.rubyforge.org/slf4j-redirect
|
4
|
+
* http://rjack.rubyforge.org
|
5
|
+
* https://github.com/dekellum/rjack
|
6
|
+
|
7
|
+
== Description
|
8
|
+
|
9
|
+
*DEPRECATED*: Use the actively maintained rjack-slf4j instead. This
|
10
|
+
gem has been re-released as a simple compatibly wrapper for the
|
11
|
+
rjack-slf4j gem.
|
12
|
+
|
13
|
+
== Synopsis
|
14
|
+
|
15
|
+
require 'slf4j'
|
16
|
+
require 'slf4j/simple'
|
17
|
+
|
18
|
+
log = SLF4J[ "my.app.logger" ]
|
19
|
+
log.info "Hello World!"
|
20
|
+
|
21
|
+
== License
|
22
|
+
|
23
|
+
=== slf4j gem
|
24
|
+
|
25
|
+
Copyright (c) 2008-2011 David Kellum
|
26
|
+
All rights reserved.
|
27
|
+
|
28
|
+
The SLF4J ruby wrapper and gem packaging is released under the same
|
29
|
+
license terms as the SLF4J java binaries, see below. Note that these
|
30
|
+
license terms are identical to the
|
31
|
+
{MIT License}[http://en.wikipedia.org/wiki/MIT_License] and deemed
|
32
|
+
compatible with GPL and the Apache Software License.
|
33
|
+
|
34
|
+
=== SLF4J (java)
|
35
|
+
|
36
|
+
Copyright (c) 2004-2008 QOS.ch
|
37
|
+
All rights reserved.
|
38
|
+
|
39
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
40
|
+
a copy of this software and associated documentation files (the
|
41
|
+
"Software"), to deal in the Software without restriction, including
|
42
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
43
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
44
|
+
permit persons to whom the Software is furnished to do so, subject to
|
45
|
+
the following conditions:
|
46
|
+
|
47
|
+
The above copyright notice and this permission notice shall be
|
48
|
+
included in all copies or substantial portions of the Software.
|
49
|
+
|
50
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
51
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
52
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
53
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
54
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
55
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
56
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
$LOAD_PATH << './lib'
|
4
|
+
require 'slf4j/base'
|
5
|
+
|
6
|
+
require 'rubygems'
|
7
|
+
gem 'rjack-tarpit', '~> 1.3.0'
|
8
|
+
require 'rjack-tarpit'
|
9
|
+
|
10
|
+
t = RJack::TarPit.new( 'slf4j', SLF4JRedirect::VERSION, :java_platform )
|
11
|
+
|
12
|
+
t.specify do |h|
|
13
|
+
h.developer( "David Kellum", "dek-oss@gravitext.com" )
|
14
|
+
h.extra_deps << [ 'rjack-slf4j', '~> 1.6.1' ]
|
15
|
+
h.rdoc_locations << "dekellum@rubyforge.org:/var/www/gforge-projects/rjack/slf4j-redirect"
|
16
|
+
end
|
17
|
+
|
18
|
+
loaders = %w[ jul jul-to-slf4j jdk14 jcl-over-slf4j jcl
|
19
|
+
log4j-over-slf4j log4j12 nop simple ]
|
20
|
+
|
21
|
+
t.generated_files = loaders.map { |adp| "lib/#{t.name}/#{adp}.rb" }
|
22
|
+
|
23
|
+
task :check_history_version do
|
24
|
+
t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
|
25
|
+
end
|
26
|
+
task :check_history_date do
|
27
|
+
t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
|
28
|
+
end
|
29
|
+
|
30
|
+
task :gem => [ :check_history_version ]
|
31
|
+
task :tag => [ :check_history_version, :check_history_date ]
|
32
|
+
task :push => [ :check_history_date ]
|
33
|
+
|
34
|
+
t.define_tasks
|
35
|
+
|
36
|
+
loaders.each do |adapter|
|
37
|
+
file "lib/#{t.name}/#{adapter}.rb" => [ "lib/#{t.name}/base.rb", 'Rakefile' ] do
|
38
|
+
open( "lib/#{t.name}/#{adapter}.rb", 'w' ) do |out|
|
39
|
+
out.write <<END
|
40
|
+
require 'slf4j'
|
41
|
+
require 'rjack-slf4j/#{adapter}'
|
42
|
+
END
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
data/lib/slf4j.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2008-2011 David Kellum
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person
|
5
|
+
# obtaining a copy of this software and associated documentation files
|
6
|
+
# (the "Software"), to deal in the Software without restriction,
|
7
|
+
# including without limitation the rights to use, copy, modify, merge,
|
8
|
+
# publish, distribute, sublicense, and/or sell copies of the Software,
|
9
|
+
# and to permit persons to whom the Software is furnished to do so,
|
10
|
+
# subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be
|
13
|
+
# included in all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
19
|
+
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
20
|
+
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
21
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
# SOFTWARE.
|
23
|
+
#++
|
24
|
+
|
25
|
+
require 'slf4j/base'
|
26
|
+
require 'rjack-slf4j'
|
27
|
+
|
28
|
+
SLF4J = RJack::SLF4J
|
data/lib/slf4j/base.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2008-2011 David Kellum
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person
|
5
|
+
# obtaining a copy of this software and associated documentation files
|
6
|
+
# (the "Software"), to deal in the Software without restriction,
|
7
|
+
# including without limitation the rights to use, copy, modify, merge,
|
8
|
+
# publish, distribute, sublicense, and/or sell copies of the Software,
|
9
|
+
# and to permit persons to whom the Software is furnished to do so,
|
10
|
+
# subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be
|
13
|
+
# included in all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
19
|
+
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
20
|
+
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
21
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
# SOFTWARE.
|
23
|
+
#++
|
24
|
+
|
25
|
+
module SLF4JRedirect
|
26
|
+
VERSION = '1.6'
|
27
|
+
end
|
data/lib/slf4j/jcl.rb
ADDED
data/lib/slf4j/jdk14.rb
ADDED
data/lib/slf4j/jul.rb
ADDED
data/lib/slf4j/nop.rb
ADDED
data/lib/slf4j/simple.rb
ADDED
data/test/test_slf4j.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
#--
|
3
|
+
# Copyright (c) 2008-2011 David Kellum
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person
|
6
|
+
# obtaining a copy of this software and associated documentation files
|
7
|
+
# (the "Software"), to deal in the Software without restriction,
|
8
|
+
# including without limitation the rights to use, copy, modify, merge,
|
9
|
+
# publish, distribute, sublicense, and/or sell copies of the Software,
|
10
|
+
# and to permit persons to whom the Software is furnished to do so,
|
11
|
+
# subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
20
|
+
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
21
|
+
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
22
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
#++
|
25
|
+
|
26
|
+
$LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )
|
27
|
+
|
28
|
+
require 'rubygems'
|
29
|
+
|
30
|
+
require 'slf4j'
|
31
|
+
|
32
|
+
# Load simple implementation for testing
|
33
|
+
require 'slf4j/simple'
|
34
|
+
|
35
|
+
# Load these only to confirm loading works
|
36
|
+
require 'slf4j/jcl-over-slf4j'
|
37
|
+
require 'slf4j/log4j-over-slf4j'
|
38
|
+
|
39
|
+
require 'test/unit'
|
40
|
+
|
41
|
+
class TestSLF4J < Test::Unit::TestCase
|
42
|
+
|
43
|
+
def test_log
|
44
|
+
log = SLF4J[ "my.app" ]
|
45
|
+
log.info( "test write" )
|
46
|
+
assert true
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: slf4j
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: "1.6"
|
6
|
+
platform: java
|
7
|
+
authors:
|
8
|
+
- David Kellum
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-05-19 00:00:00 -07:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rjack-slf4j
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 1.6.1
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rjack-tarpit
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ~>
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 1.3.1
|
36
|
+
type: :development
|
37
|
+
version_requirements: *id002
|
38
|
+
description: |-
|
39
|
+
*DEPRECATED*: Use the actively maintained rjack-slf4j instead. This
|
40
|
+
gem has been re-released as a simple compatibly wrapper for the
|
41
|
+
rjack-slf4j gem.
|
42
|
+
email:
|
43
|
+
- dek-oss@gravitext.com
|
44
|
+
executables: []
|
45
|
+
|
46
|
+
extensions: []
|
47
|
+
|
48
|
+
extra_rdoc_files:
|
49
|
+
- Manifest.txt
|
50
|
+
- History.rdoc
|
51
|
+
- README.rdoc
|
52
|
+
files:
|
53
|
+
- Manifest.txt
|
54
|
+
- README.rdoc
|
55
|
+
- History.rdoc
|
56
|
+
- Rakefile
|
57
|
+
- lib/slf4j/base.rb
|
58
|
+
- lib/slf4j.rb
|
59
|
+
- test/test_slf4j.rb
|
60
|
+
- lib/slf4j/jcl-over-slf4j.rb
|
61
|
+
- lib/slf4j/jcl.rb
|
62
|
+
- lib/slf4j/jdk14.rb
|
63
|
+
- lib/slf4j/jul-to-slf4j.rb
|
64
|
+
- lib/slf4j/jul.rb
|
65
|
+
- lib/slf4j/log4j-over-slf4j.rb
|
66
|
+
- lib/slf4j/log4j12.rb
|
67
|
+
- lib/slf4j/nop.rb
|
68
|
+
- lib/slf4j/simple.rb
|
69
|
+
has_rdoc: true
|
70
|
+
homepage: http://rjack.rubyforge.org/slf4j-redirect
|
71
|
+
licenses: []
|
72
|
+
|
73
|
+
post_install_message:
|
74
|
+
rdoc_options:
|
75
|
+
- --main
|
76
|
+
- README.rdoc
|
77
|
+
require_paths:
|
78
|
+
- lib
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: "0"
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: "0"
|
91
|
+
requirements: []
|
92
|
+
|
93
|
+
rubyforge_project: slf4j
|
94
|
+
rubygems_version: 1.5.1
|
95
|
+
signing_key:
|
96
|
+
specification_version: 3
|
97
|
+
summary: "*DEPRECATED*: Use the actively maintained rjack-slf4j instead"
|
98
|
+
test_files:
|
99
|
+
- test/test_slf4j.rb
|