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 +4 -4
- data/README.md +14 -0
- data/lib/elastic-logger/generator.rb +1 -0
- data/lib/elastic-logger/templates/elastic_logger.rb +5 -0
- data/lib/elastic-logger/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9fb5df40f094bcea30094a9d9f8335cece61875
|
4
|
+
data.tar.gz: d2ba09f63030e8cb366ce704a3845cca6188b53f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
|