auto_logger 0.1.7 → 0.1.8
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 +17 -0
- data/lib/auto_logger/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbdfd2ed3fdc82c5e7d001a3df20988b4005aac5772f4dfe4aef148ab11b8af8
|
|
4
|
+
data.tar.gz: 75518c5e2773f0621a70e2faacc76955a06191789734f167bf717a87a7d751a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ced8412be10021e761f8c61b5ec46236c0ea413f0b81146c12e17e6b7314d224806e8558c4c89e34477626d223d9f9e2d96b60fc2639af48dad3b4092d2c42cd
|
|
7
|
+
data.tar.gz: e59cac3f3e49842fa3aceddc919de4d6643c004e2f16cfc31db819a20c8a79fccc960b54f7b41f4f36b53cdb1175d8c8b3d60f629a20250e7aec210ffdd9a79a
|
data/README.md
CHANGED
|
@@ -75,6 +75,23 @@ AutoLogger.logger_builder = -> (tag, default_formatter) {
|
|
|
75
75
|
}
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
+
## Collapse all logs to one (useful for development)
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
if ENV['COLLAPSE_AUTO_LOGGER'].present?
|
|
82
|
+
if ENV['COLLAPSE_AUTO_LOGGER'] == 'STDOUT'
|
|
83
|
+
logger = Logger.new(STDOUT)
|
|
84
|
+
else
|
|
85
|
+
logger = Rails.logger
|
|
86
|
+
end
|
|
87
|
+
AutoLogger.logger_builder = -> (tag, default_formatter) {
|
|
88
|
+
ActiveSupport::TaggedLogging
|
|
89
|
+
.new(logger)
|
|
90
|
+
.tagged(tag)
|
|
91
|
+
}
|
|
92
|
+
end
|
|
93
|
+
```
|
|
94
|
+
|
|
78
95
|
## Development
|
|
79
96
|
|
|
80
97
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/auto_logger/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: auto_logger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danil Pismenny
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: beautiful-log
|
|
@@ -136,7 +135,6 @@ homepage: https://github.com/BrandyMint/auto_logger
|
|
|
136
135
|
licenses:
|
|
137
136
|
- MIT
|
|
138
137
|
metadata: {}
|
|
139
|
-
post_install_message:
|
|
140
138
|
rdoc_options: []
|
|
141
139
|
require_paths:
|
|
142
140
|
- lib
|
|
@@ -151,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
151
149
|
- !ruby/object:Gem::Version
|
|
152
150
|
version: '0'
|
|
153
151
|
requirements: []
|
|
154
|
-
rubygems_version: 3.
|
|
155
|
-
signing_key:
|
|
152
|
+
rubygems_version: 3.6.8
|
|
156
153
|
specification_version: 4
|
|
157
154
|
summary: "'logger' method configured with class/module name"
|
|
158
155
|
test_files: []
|