elastic-logger 0.2.0 → 0.2.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: a43d74a210abd4c249c20bc89bc74c51d61267a3
4
- data.tar.gz: e40dedc5c7eb1ed65f834c7c59fe2ca9333716f2
3
+ metadata.gz: b9fb5df40f094bcea30094a9d9f8335cece61875
4
+ data.tar.gz: d2ba09f63030e8cb366ce704a3845cca6188b53f
5
5
  SHA512:
6
- metadata.gz: 6c6a86a4c6416b3f1f7298985673c6d141cff164d438b31c5fc74cc2f3b914e84ab57c7eebf0c295f35ee5c4d37e21cf459fd538b880889b79e3b416e41dfb08
7
- data.tar.gz: fb61352a4c0d62c0312a09a2eb4f25184a286122285f7d6b50e88302930599813f983b7c663115fd73ef419a9134a8edef8398fe9a67a3d368939a656f042ad6
6
+ metadata.gz: a50153e69f38125076c27e4cc3fbd4d796a60659620fd0d1893013d12b62d2a156636f7b501d3e7a83023ca0642a5e1cea3cd66f82ce26611cf0214df28147e5
7
+ data.tar.gz: 39d0f5288871612704c2458a469ff5a329d6fe23b84a246f876d97e826618af6566ace9108b265fe269a0138c793ec842b7f9c6a35c025b9b064ca7db5986a9b
data/README.md CHANGED
@@ -18,6 +18,11 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage Examples
20
20
 
21
+ There is a generator for Rails which will create base intialize and config files.
22
+ ```bash
23
+ bundle exec rails generate elastic_logger
24
+ ```
25
+
21
26
  ```ruby
22
27
  require 'elastic-logger'
23
28
 
@@ -67,6 +72,15 @@ You can create your own writer. It needs two mtethods:
67
72
  * `initialize` with `name` and `config` named params
68
73
  * `log` with one params with is hash to log.
69
74
 
75
+ ### Capistrano
76
+
77
+ ```ruby
78
+ # Capfile
79
+ require 'elastic-logger/capistrano'
80
+ ```
81
+
82
+ Index in elasticsearch will be updated after deploy, with all used elk logs.
83
+
70
84
  ## Contributing
71
85
 
72
86
  1. Fork it
@@ -6,5 +6,6 @@ class ElasticLoggerGenerator < Rails::Generators::Base
6
6
 
7
7
  def create_config_files
8
8
  template 'elastic_log_types.yml', 'config/elastic_log_types.yml.example'
9
+ template 'elastic_logger.rb', 'config/initializers/elastic_logger.rb'
9
10
  end
10
11
  end
@@ -0,0 +1,5 @@
1
+ ElasticLogger.configure do |config|
2
+ config.host = '192.168.60.10:9200'
3
+ config.types_file = 'config/elastic_log_types.yml'
4
+ config.path = 'log'
5
+ end
@@ -1,3 +1,3 @@
1
1
  module ElasticLogger
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radosław Woźnik
@@ -61,6 +61,7 @@ files:
61
61
  - lib/elastic-logger/railtie.rb
62
62
  - lib/elastic-logger/rotate.rake
63
63
  - lib/elastic-logger/templates/elastic_log_types.yml
64
+ - lib/elastic-logger/templates/elastic_logger.rb
64
65
  - lib/elastic-logger/types.rb
65
66
  - lib/elastic-logger/version.rb
66
67
  homepage: https://github.com/infakt/elastic-logger