alephant-logger 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5d1499280f31079a470dd60e74786a9393802b3
4
- data.tar.gz: 371124eae62711cdedeadf70e1f6e5827ece2e1a
3
+ metadata.gz: 873a33394a698a442953bdb5dac5abee5fd093a9
4
+ data.tar.gz: 856034bc10751cc791ab1fafa7febeeb9a50bece
5
5
  SHA512:
6
- metadata.gz: 643fa7bab726821bef7a1b6e2ad9c280e75679251f72879fd6c0817a039a3980b3c08a06b164c03ddacdd0383066b45f43a71564919d76689d959a815f5e2616
7
- data.tar.gz: f660dee91ea4db95ec0ace00c252717da051e75d70374d62b8908c7ceb696f86286c81d6e0e1d733bba9447b3bfafe9ed5c96410303eecafa33e2e15ae78f81e
6
+ metadata.gz: 99dbe235497a8284bb6841bd2be7f90ed998d4ca5ca869471765670ed763acdbb60a420558fe9b28df442bcbf8ca331b5feb54fb3eab218895044f3dfcce414a
7
+ data.tar.gz: e6fd1faf61ac2710b4d30b180abdb54a9370dfbfdeb35aa7aa03688605e575747c6d7c8b7931a2c278f85904584f196bd0acf4ede6db7c10fb4a473aa3b030ea
@@ -10,6 +10,10 @@ module Alephant
10
10
  @@logger
11
11
  end
12
12
 
13
+ def self.get_logger
14
+ @@logger
15
+ end
16
+
13
17
  def self.setup(*drivers)
14
18
  @@logger = Alephant::LoggerFactory.create(drivers.flatten)
15
19
  end
@@ -5,6 +5,10 @@ module Alephant
5
5
  @drivers = drivers << ::Logger.new(STDOUT)
6
6
  end
7
7
 
8
+ def write(*args)
9
+ self.<< *args
10
+ end
11
+
8
12
  def method_missing(name, *args)
9
13
  drivers.each do |driver|
10
14
  driver.send(name, *args) if driver.respond_to? name
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Logger
3
- VERSION = "1.1.1"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
11
+ date: 2015-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec