rails_semantic_logger 3.1.0 → 3.1.1

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: 6b67e5d8f28b2e51e0718ba6bb78836efffba19b
4
- data.tar.gz: 8f255e0c6a0d030f40e45423db46187aae7fcd9f
3
+ metadata.gz: 9b3c81d831ddf54281df5951cf2e07700172e41a
4
+ data.tar.gz: f143c81f6bee1502ae6856a6935ade70ce91ebfe
5
5
  SHA512:
6
- metadata.gz: b5202dc5e4bfcd755dfd1de312e3023ac4526d933094df2ded3495420fac0882df959f5a6a2be29054c3bb1d91cc1adb5eb81152a75766105e586caf082c597a
7
- data.tar.gz: 9cf9187d55b5bb2a862be2c58e36aecec7cf318f91ca1f64287b9690c834e13ec503cbf22e943eabd49d70cc5f93e9dc38765c139b9dd5ef4bb89165f6cc5a7e
6
+ metadata.gz: 77d7e05e7254739ce759c2dcc08e5c419a84c5c80c9ff7b6f9c467ec733ee605ce450b5788904fe2b4efe8e530fd95ac0d9bd3a71ac09940182f1cf121ff7340
7
+ data.tar.gz: d5a38591de2cca478df4e2f6f1b1c70bb443bbbc45f750020d562e99589d2e9fdefb610d5559c68c669374623582ef1f4ae1a1d7b874b6597fb1accc942f1213
@@ -3,6 +3,12 @@ ActionCable::Connection::TaggedLoggerProxy
3
3
  module ActionCable
4
4
  module Connection
5
5
  class TaggedLoggerProxy
6
+ # As of Rails 5 Beta 3
7
+ def tag_logger(*tags, &block)
8
+ logger.tagged(*tags, &block)
9
+ end
10
+
11
+ # Rails 5 Beta 1,2. TODO: Remove once Rails 5 is GA
6
12
  def tag(logger, &block)
7
13
  current_tags = tags - logger.tags
8
14
  logger.tagged(*current_tags, &block)
@@ -74,7 +74,7 @@ module RailsSemanticLogger #:nodoc:
74
74
  # Add the log file to the list of appenders
75
75
  # Use the colorized formatter if Rails colorized logs are enabled
76
76
  options = config.rails_semantic_logger.ap_options
77
- formatter = config.colorize_logging == false ? :default : SemanticLogger::Formatters::Color.new(options)
77
+ formatter = config.colorize_logging == false ? SemanticLogger::Formatters::Default.new : SemanticLogger::Formatters::Color.new(options)
78
78
  # Check for previous file or stdout loggers
79
79
  SemanticLogger.appenders.each { |appender| appender.formatter = formatter if appender.is_a?(SemanticLogger::Appender::File) }
80
80
  SemanticLogger.add_appender(file_name: path, formatter: formatter)
@@ -1,3 +1,3 @@
1
1
  module RailsSemanticLogger #:nodoc
2
- VERSION = '3.1.0'
2
+ VERSION = '3.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reid Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-27 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails