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
@@ -1,5 +1,5 @@
1
1
  module Smartkiosk
2
2
  module Common
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartkiosk-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: