tagged_objects_logger 0.1.0 → 0.1.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/.gitignore +1 -0
- data/Gemfile.lock +0 -18
- data/LICENSE +1 -1
- data/README.md +24 -7
- data/lib/tagged_objects_logger/version.rb +1 -1
- data/tagged_objects_logger.gemspec +1 -1
- 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: d5ce1d775516ad81d727f2faad3789865d83e1970374eaa0875eacbd9f750aa2
|
4
|
+
data.tar.gz: 6b2b88302243c5f8bbd72364935c5ce85bec98680d622af55248f5299e91c054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50457735be7c26a70275eefbb5b8d92ce2a55c75f3f271fa305494597c5aaa2f10cf51c4c793075690ec8c3d45f7ea406122cb0a93e0d5d106053706ceafd3cd
|
7
|
+
data.tar.gz: 8e4ced18287ead042ab0194534441919d7616db3f934d329ce95f6185eff2a85c70829bb6c99e7588110b644d2f41335e04cf3946bd560e32c68156384ef17f2
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -24,7 +24,6 @@ GEM
|
|
24
24
|
i18n (>= 0.7, < 2)
|
25
25
|
minitest (~> 5.1)
|
26
26
|
tzinfo (~> 1.1)
|
27
|
-
ast (2.4.0)
|
28
27
|
builder (3.2.3)
|
29
28
|
concurrent-ruby (1.0.5)
|
30
29
|
crass (1.0.4)
|
@@ -37,7 +36,6 @@ GEM
|
|
37
36
|
railties (>= 3.0.0)
|
38
37
|
i18n (1.0.1)
|
39
38
|
concurrent-ruby (~> 1.0)
|
40
|
-
jaro_winkler (1.5.1)
|
41
39
|
loofah (2.2.2)
|
42
40
|
crass (~> 1.0.2)
|
43
41
|
nokogiri (>= 1.5.9)
|
@@ -46,10 +44,6 @@ GEM
|
|
46
44
|
minitest (5.11.3)
|
47
45
|
nokogiri (1.8.4)
|
48
46
|
mini_portile2 (~> 2.3.0)
|
49
|
-
parallel (1.12.1)
|
50
|
-
parser (2.5.1.2)
|
51
|
-
ast (~> 2.4.0)
|
52
|
-
powerpack (0.1.2)
|
53
47
|
rack (2.0.5)
|
54
48
|
rack-test (1.0.0)
|
55
49
|
rack (>= 1.0, < 3)
|
@@ -64,7 +58,6 @@ GEM
|
|
64
58
|
method_source
|
65
59
|
rake (>= 0.8.7)
|
66
60
|
thor (>= 0.18.1, < 2.0)
|
67
|
-
rainbow (3.0.0)
|
68
61
|
rake (10.5.0)
|
69
62
|
rspec (3.7.0)
|
70
63
|
rspec-core (~> 3.7.0)
|
@@ -79,20 +72,10 @@ GEM
|
|
79
72
|
diff-lcs (>= 1.2.0, < 2.0)
|
80
73
|
rspec-support (~> 3.7.0)
|
81
74
|
rspec-support (3.7.1)
|
82
|
-
rubocop (0.58.1)
|
83
|
-
jaro_winkler (~> 1.5.1)
|
84
|
-
parallel (~> 1.10)
|
85
|
-
parser (>= 2.5, != 2.5.1.1)
|
86
|
-
powerpack (~> 0.1)
|
87
|
-
rainbow (>= 2.2.2, < 4.0)
|
88
|
-
ruby-progressbar (~> 1.7)
|
89
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
90
|
-
ruby-progressbar (1.9.0)
|
91
75
|
thor (0.20.0)
|
92
76
|
thread_safe (0.3.6)
|
93
77
|
tzinfo (1.2.5)
|
94
78
|
thread_safe (~> 0.1)
|
95
|
-
unicode-display_width (1.4.0)
|
96
79
|
|
97
80
|
PLATFORMS
|
98
81
|
ruby
|
@@ -102,7 +85,6 @@ DEPENDENCIES
|
|
102
85
|
factory_bot_rails (~> 4.8, >= 4.8.2)
|
103
86
|
rake (~> 10.0)
|
104
87
|
rspec (~> 3.0)
|
105
|
-
rubocop
|
106
88
|
tagged_objects_logger!
|
107
89
|
|
108
90
|
BUNDLED WITH
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
[](https://travis-ci.org/blink22/tagged_objects_logger)
|
2
|
+
[](https://codeclimate.com/github/blink22/tagged_objects_logger)
|
3
|
+
|
1
4
|
# TaggedObjectsLogger
|
2
5
|
|
3
|
-
Welcome to TaggedObjectsLogger Gem. This gem is created for the reason of logging error, warning, info, bug and unknown messages. All gem methods inherited from Ruby logger.
|
6
|
+
Welcome to TaggedObjectsLogger Gem. This gem is created for the reason of logging error, warning, info, bug and unknown messages in a custom format. All gem methods inherited from Ruby logger.
|
4
7
|
|
5
8
|
## Installation
|
6
9
|
|
@@ -25,8 +28,25 @@ config.logger = TaggedLogger.instance
|
|
25
28
|
|
26
29
|
## Usage
|
27
30
|
|
28
|
-
This gem
|
31
|
+
After configuring environment logger variable with TaggedLogger instance you can use This gem to log errors, info, bugs, warning, unknown messages and fatal errors.
|
29
32
|
This gem tags object by its class name and ID in the log file.
|
33
|
+
Log file created in log/[Rails environment].log.
|
34
|
+
Log path could be customized by passing log path while intializing TaggedLogger instance ex: TaggedLogger.instance(Log_file_path)
|
35
|
+
An Example of Log file content:
|
36
|
+
```
|
37
|
+
# Logfile created on 2018-07-18 14:59:55 +0200 by logger.rb/61378
|
38
|
+
I, [2018-07-18T14:59:55.698298 #20025] INFO -- : [TestObject_13]: [TestObject_14]: [TestObject_15]: This is My Info Message
|
39
|
+
|
40
|
+
E, [2018-07-18T14:59:55.700376 #20025] ERROR -- : [TestObject_16]: [TestObject_17]: [TestObject_18]: This is My Error Message
|
41
|
+
|
42
|
+
D, [2018-07-18T14:59:55.704728 #20025] DEBUG -- : [TestObject_19]: [TestObject_20]: [TestObject_21]: This is My Debug Message
|
43
|
+
|
44
|
+
F, [2018-07-18T14:59:55.706860 #20025] FATAL -- : [TestObject_22]: [TestObject_23]: [TestObject_24]: This is a Fatal error
|
45
|
+
|
46
|
+
A, [2018-07-18T14:59:55.708679 #20025] ANY -- : [TestObject_25]: [TestObject_26]: [TestObject_27]: This is unknown message
|
47
|
+
|
48
|
+
W, [2018-07-18T14:59:55.710540 #20025] WARN -- : [TestObject_28]: [TestObject_29]: [TestObject_30]: This is just a warning
|
49
|
+
```
|
30
50
|
|
31
51
|
## Development
|
32
52
|
|
@@ -36,7 +56,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
36
56
|
|
37
57
|
## Contributing
|
38
58
|
|
39
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/blink22/tagged_objects_logger. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
40
60
|
|
41
61
|
## License
|
42
62
|
|
@@ -44,7 +64,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
44
64
|
|
45
65
|
## Code of Conduct
|
46
66
|
|
47
|
-
Everyone interacting in the TaggedObjectsLogger project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
48
|
-
|
49
|
-
[](https://travis-ci.com/Truncourist/tagged_objects_logger)
|
50
|
-
[](https://codeclimate.com/github/Truncourist/tagged_objects_logger)
|
67
|
+
Everyone interacting in the TaggedObjectsLogger project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/blink22/tagged_objects_logger/blob/master/CODE_OF_CONDUCT.md).
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = 'Tagged Objects Logger'
|
12
12
|
spec.description = 'A simple Logger, that logs objects error tagged
|
13
13
|
with their class name and IDs'
|
14
|
-
spec.homepage = 'https://github.com/
|
14
|
+
spec.homepage = 'https://github.com/blink22/tagged_objects_logger'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tagged_objects_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Truncourist
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -96,7 +96,7 @@ files:
|
|
96
96
|
- lib/tagged_objects_logger.rb
|
97
97
|
- lib/tagged_objects_logger/version.rb
|
98
98
|
- tagged_objects_logger.gemspec
|
99
|
-
homepage: https://github.com/
|
99
|
+
homepage: https://github.com/blink22/tagged_objects_logger
|
100
100
|
licenses:
|
101
101
|
- MIT
|
102
102
|
metadata:
|