chili_logger 0.0.5 → 0.0.6
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/Gemfile.lock +2 -2
- data/README.md +30 -4
- data/chili_logger.gemspec +1 -1
- data/lib/chili_logger/version.rb +1 -1
- metadata +9 -5
- data/chili_logger-0.0.1.gem +0 -0
- data/chili_logger-0.0.3.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 343e9ca7482069bf214252cd550112502f9187f65182d5aaadd5bfde3d61fe8a
|
4
|
+
data.tar.gz: cee89f157a89466d67f558a2a86adbb174b4c4a866cb1eb607650465ed1a8e88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54a9ac360ac8b8df8cec30451c061af1fabb935b5cfa7be55eb315b8b40f55fd36d939d6c75f5f7f7817025be9c000e3f75c6877e0e2261287a527d0704389a2
|
7
|
+
data.tar.gz: bbd90e9561f1fffbdd56e5e784ae2e665220f83a4adf38b6bd0a733ef355004a656fadb30ce5d0991699393f60bba6453cde7cc373385ddfa3bfd51dc8e0414d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# ChiliLogger
|
2
2
|
|
3
|
-
|
3
|
+
ChiliLogger is gem developed for internal use in Chiligum Creatives. It is used to monitor our applications and generate logs with some uniformization.
|
4
4
|
|
5
|
-
|
5
|
+
## How it works
|
6
|
+
|
7
|
+
---
|
6
8
|
|
7
9
|
## Installation
|
8
10
|
|
@@ -60,18 +62,42 @@ You ALSO MUST set error_handler and error_handler_config. The error handler is t
|
|
60
62
|
Please note that if ChiliLogger tries to publish a log and both the Message Broker and the Error Handler are simultaneously down, the log will be discarded. This behavior makes sure logging problems never cause the app to break.
|
61
63
|
|
62
64
|
|
65
|
+
---
|
66
|
+
|
67
|
+
## Basic Usage
|
68
|
+
The easiest way to use ChiliLogger is with the `publish_instant_log` method. It requires three arguments: `desc`, `agent` and `main_content`, which are used to create the log. All of them are optional arguments and have default values:
|
69
|
+
```ruby
|
70
|
+
desc = { type: }
|
71
|
+
ChiliLogger.instance.publish_instant_log(desc, agent, log)
|
72
|
+
|
73
|
+
|
74
|
+
ChiliLogger.instance.publish_instant_log
|
75
|
+
```
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
Notice that ChiliLogger uses the Singleton pattern. So, to call its methods, you must first access the instance method. Calling ChiliLogger.new will return an error:
|
80
|
+
```ruby
|
81
|
+
ChiliLogger.publish_instant_log(desc, agent, log)
|
82
|
+
# NoMethodError: private method `new' called for ChiliLogger:Class
|
63
83
|
|
84
|
+
ChiliLogger.instance.publish_instant_log(desc, agent, log)
|
85
|
+
# works fine
|
86
|
+
```
|
64
87
|
|
65
|
-
|
88
|
+
---
|
66
89
|
|
67
|
-
|
90
|
+
## Advanced Usage
|
68
91
|
|
92
|
+
---
|
69
93
|
## Development
|
70
94
|
|
71
95
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
72
96
|
|
73
97
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
74
98
|
|
99
|
+
---
|
100
|
+
|
75
101
|
## Contributing
|
76
102
|
|
77
103
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/chili_logger.
|
data/chili_logger.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.homepage = 'https://gitlab.com/chiligumdev/chili_logger'
|
12
12
|
spec.license = 'MIT'
|
13
13
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
14
|
-
spec.add_dependency 'aws-sdk'
|
14
|
+
spec.add_dependency 'aws-sdk', '~> 2.9', '>= 2.9.0'
|
15
15
|
spec.add_dependency 'bunny'
|
16
16
|
spec.add_dependency 'httparty'
|
17
17
|
|
data/lib/chili_logger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chili_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lucas sandeville
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.9.0
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.9'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 2.9.0
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.9'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bunny
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,8 +77,6 @@ files:
|
|
71
77
|
- Rakefile
|
72
78
|
- bin/console
|
73
79
|
- bin/setup
|
74
|
-
- chili_logger-0.0.1.gem
|
75
|
-
- chili_logger-0.0.3.gem
|
76
80
|
- chili_logger.gemspec
|
77
81
|
- lib/brokers/rabbit_broker.rb
|
78
82
|
- lib/chili_logger.rb
|
data/chili_logger-0.0.1.gem
DELETED
Binary file
|
data/chili_logger-0.0.3.gem
DELETED
Binary file
|