smartkiosk-common 0.0.1 → 0.0.2
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.
@@ -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
|