rails_semantic_logger 3.1.0 → 3.1.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b3c81d831ddf54281df5951cf2e07700172e41a
|
4
|
+
data.tar.gz: f143c81f6bee1502ae6856a6935ade70ce91ebfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 ?
|
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)
|
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.
|
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
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|