smartkiosk-common 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,10 @@ module Smartkiosk
|
|
4
4
|
module Common
|
5
5
|
module Logging
|
6
6
|
|
7
|
+
def destination=(value)
|
8
|
+
@destination = value
|
9
|
+
end
|
10
|
+
|
7
11
|
def service=(service)
|
8
12
|
@service = service
|
9
13
|
end
|
@@ -21,7 +25,7 @@ module Smartkiosk
|
|
21
25
|
end
|
22
26
|
|
23
27
|
def init
|
24
|
-
log = Logger.new(STDOUT)
|
28
|
+
log = Logger.new(@destination || STDOUT)
|
25
29
|
log.level = Logger::DEBUG
|
26
30
|
log.formatter = proc do |severity, time, progname, msg|
|
27
31
|
Smartkiosk::Common::Logging.format @service, severity, time, progname, msg
|