fedux_org-stdlib 0.0.38 → 0.0.39
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.
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'logger'
|
2
2
|
require 'forwardable'
|
3
|
+
require 'fedux_org/stdlib/logging/severity'
|
3
4
|
|
4
5
|
module FeduxOrg
|
5
6
|
module Stdlib
|
@@ -11,8 +12,8 @@ module FeduxOrg
|
|
11
12
|
|
12
13
|
attr_reader :mode
|
13
14
|
|
14
|
-
def initialize
|
15
|
-
@logger =
|
15
|
+
def initialize(logger = ::Logger.new( $stderr ) )
|
16
|
+
@logger = logger
|
16
17
|
self.mode = :info
|
17
18
|
end
|
18
19
|
|
@@ -38,7 +39,7 @@ module FeduxOrg
|
|
38
39
|
|
39
40
|
def format_debug
|
40
41
|
@logger.formatter = proc { |severity, datetime, progname , msg|
|
41
|
-
|
42
|
+
debug_msg("%s %s %s: %s\n" % [ datetime, severity, progname, msg ])
|
42
43
|
}
|
43
44
|
end
|
44
45
|
|
@@ -63,7 +64,3 @@ module FeduxOrg
|
|
63
64
|
end
|
64
65
|
end
|
65
66
|
end
|
66
|
-
|
67
|
-
class ::Logger
|
68
|
-
SILENT = 9999 unless defined? SILENT
|
69
|
-
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fedux_org-stdlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.39
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- lib/fedux_org/stdlib/filesystem/exceptions.rb
|
91
91
|
- lib/fedux_org/stdlib/logging.rb
|
92
92
|
- lib/fedux_org/stdlib/logging/logger.rb
|
93
|
+
- lib/fedux_org/stdlib/logging/severity.rb
|
93
94
|
- lib/fedux_org/stdlib/logic_converters.rb
|
94
95
|
- lib/fedux_org/stdlib/logic_converters/exceptions.rb
|
95
96
|
- lib/fedux_org/stdlib/logic_converters/logic_converter.rb
|