act-fluent-logger-rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,6 +23,24 @@ in config/environments/production.rb
23
23
  config.log_level = :info
24
24
  config.logger = Actindi::Logger.new
25
25
 
26
+ create config/fluent-logger.yml
27
+
28
+ development:
29
+ fluent_host: '127.0.0.1'
30
+ fluent_port: 24224
31
+ tag: 'foo'
32
+
33
+ test:
34
+ fluent_host: '127.0.0.1'
35
+ fluent_port: 24224
36
+ tag: 'foo'
37
+
38
+ production:
39
+ fluent_host: '127.0.0.1'
40
+ fluent_port: 24224
41
+ tag: 'foo'
42
+
43
+
26
44
  ## Contributing
27
45
 
28
46
  1. Fork it
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["read.eval.print@gmail.com"]
11
11
  gem.description = %q{Fluent logger}
12
12
  gem.summary = %q{Fluent logger}
13
- gem.homepage = ""
13
+ gem.homepage = "https://github.com/actindi/act-fluent-logger-rails"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -13,7 +13,7 @@ module ActFluentLoggerRails
13
13
  port: fluent_config['fluent_port']
14
14
  }
15
15
  @level = SEV_LABEL.index(Rails.application.config.log_level.to_s.upcase)
16
- super(::Actindi::FluentLogger.new(settings, @level))
16
+ super(::ActFluentLoggerRails::FluentLogger.new(settings, @level))
17
17
  end
18
18
 
19
19
  def add(severity, message = nil, progname = nil, &block)
@@ -70,7 +70,7 @@ module ActFluentLoggerRails
70
70
  end
71
71
 
72
72
  def format_severity(severity)
73
- Actindi::Logger::SEV_LABEL[severity] || 'ANY'
73
+ ActFluentLoggerRails::Logger::SEV_LABEL[severity] || 'ANY'
74
74
  end
75
75
  end
76
76
  end
@@ -1,3 +1,3 @@
1
1
  module ActFluentLoggerRails
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: act-fluent-logger-rails
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:
@@ -75,7 +75,7 @@ files:
75
75
  - lib/act-fluent-logger-rails.rb
76
76
  - lib/act-fluent-logger-rails/logger.rb
77
77
  - lib/act-fluent-logger-rails/version.rb
78
- homepage: ''
78
+ homepage: https://github.com/actindi/act-fluent-logger-rails
79
79
  licenses: []
80
80
  post_install_message:
81
81
  rdoc_options: []