log 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/log.rb +10 -4
- data/lib/log/version.rb +1 -1
- metadata +2 -2
data/lib/log.rb
CHANGED
@@ -95,10 +95,16 @@ module Log
|
|
95
95
|
end
|
96
96
|
|
97
97
|
# Write init message and user parameters
|
98
|
-
@log4r.info('BBFS Log initialized.')
|
99
|
-
|
100
|
-
|
101
|
-
|
98
|
+
@log4r.info('BBFS Log initialized.') # log first data
|
99
|
+
|
100
|
+
# print params
|
101
|
+
if Params['print_params_to_stdout']
|
102
|
+
Params.get_init_messages().each { |msg|
|
103
|
+
@log4r.info(msg)
|
104
|
+
}
|
105
|
+
else
|
106
|
+
@log4r.info("Not printing executable parameters since param:'print_params_to_stdout' is false")
|
107
|
+
end
|
102
108
|
end
|
103
109
|
|
104
110
|
# Auxiliary method to add the calling method to the message
|
data/lib/log/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
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-05-
|
12
|
+
date: 2013-05-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: params
|