ruby_rabbitmq_janus 2.6.0.pre.258 → 2.6.0.pre.259
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.yml +0 -2
- data/lib/rrj/tools/gem/log.rb +5 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f22219a9d1b138cf9deb72eea8ba0ff5e96babd726840beaea2bcd6bc83ea636
|
4
|
+
data.tar.gz: 49231a32d9c46b511a8edcce33a4e298ebc8952922df040dc99ae15e43d0f126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8e607410914d08787342033553fe084b5ad784d2dea3779271f92a1374e2ae6c6020220fc32acb724590effdb938cc8a91a8cca11b5909af9f7068820da15c4
|
7
|
+
data.tar.gz: aecad6ff93a6f858e5e220adc006f9ff295907396dd90bca9ef98e89670f289d0b13764838671c7621ec311e205d19054a04336cee4aa6443a2c23d01f674fe2
|
data/config/default.yml
CHANGED
@@ -61,13 +61,11 @@ gem:
|
|
61
61
|
# Precise type logger
|
62
62
|
# stdout : Output standard.
|
63
63
|
# file : Create log file in path 'log/ruby-rabbitmq-janus.log'.
|
64
|
-
# rails : Use logger rails.
|
65
64
|
# remote : Use RemoteSyslogLogger (for papertrail)
|
66
65
|
type: file
|
67
66
|
# Used with type. Complete missing data :
|
68
67
|
# stdout : no option
|
69
68
|
# file : filename used
|
70
|
-
# rails : no option
|
71
69
|
# remote : data output (logs.papertrail.com:4685@program_rrj:backend_host)
|
72
70
|
option: ''
|
73
71
|
# Options for listener thread
|
data/lib/rrj/tools/gem/log.rb
CHANGED
@@ -39,8 +39,9 @@ module RubyRabbitmqJanus
|
|
39
39
|
case @config.log_type
|
40
40
|
when :stdout then logger_stdout
|
41
41
|
when :file then logger_file
|
42
|
-
when :rails then logger_rails
|
43
42
|
when :remote then logger_remote
|
43
|
+
else
|
44
|
+
logger_stdout
|
44
45
|
end
|
45
46
|
end
|
46
47
|
|
@@ -48,15 +49,13 @@ module RubyRabbitmqJanus
|
|
48
49
|
::Logger.new(STDOUT)
|
49
50
|
end
|
50
51
|
|
51
|
-
def self.logger_rails
|
52
|
-
Rails.logger
|
53
|
-
end
|
54
|
-
|
55
52
|
def self.logger_file
|
56
|
-
::Logger.new(
|
53
|
+
::Logger.new(@config.log_option)
|
57
54
|
end
|
58
55
|
|
59
56
|
def self.logger_remote
|
57
|
+
require 'remote_syslog_logger'
|
58
|
+
|
60
59
|
RemoteSyslogLogger.new(remote_url,
|
61
60
|
remote_port,
|
62
61
|
program: remote_program,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_rabbitmq_janus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.0.pre.
|
4
|
+
version: 2.6.0.pre.259
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -708,7 +708,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
708
708
|
- !ruby/object:Gem::Version
|
709
709
|
version: 1.3.1
|
710
710
|
requirements: []
|
711
|
-
rubygems_version: 3.0.
|
711
|
+
rubygems_version: 3.0.4
|
712
712
|
signing_key:
|
713
713
|
specification_version: 4
|
714
714
|
summary: Ruby RabbitMQ Janus
|