cogger 0.8.0 → 0.10.0
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
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +29 -5
- data/cogger.gemspec +4 -4
- data/lib/cogger/registry.rb +3 -3
- data.tar.gz.sig +0 -0
- metadata +8 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35d3b14e6def20c800daa000ba7e2ceb14d7fe0f37a1094ed26e5fc5e0c66317
|
|
4
|
+
data.tar.gz: 48a6f9de1a81dcfe9dde02cef98da9781f4852a0d9c236706cb0893dcf59ac2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90fbcabbadf43713e860eb81315fde1950b49d1cdb826a59da05c958abba2c7f5e33d688e1ac9578f1ef6f0a74d9730d9d04744979868950721dcd4f4983cde5
|
|
7
|
+
data.tar.gz: 710591316682f15702005f3276dd42653e4e0f4c6df8491489bfaccc36f4542e466e06ee796f7dade38167fc02b4ebb03a42498ae7a99c953cb49a47bd6ede1b
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/README.adoc
CHANGED
|
@@ -23,9 +23,31 @@ toc::[]
|
|
|
23
23
|
* Provides multiple streams so you can log the same information to several outputs at once.
|
|
24
24
|
* Provides filtering of sensitive information.
|
|
25
25
|
|
|
26
|
-
==
|
|
26
|
+
== Screenshots
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
*Emoji*
|
|
29
|
+
|
|
30
|
+
image::https://alchemists.io/images/projects/cogger/screenshots/emoji.png[Emoji,width=150,height=130]
|
|
31
|
+
|
|
32
|
+
*Color*
|
|
33
|
+
|
|
34
|
+
image::https://alchemists.io/images/projects/cogger/screenshots/color.png[Color,width=150,height=125]
|
|
35
|
+
|
|
36
|
+
*Simple*
|
|
37
|
+
|
|
38
|
+
image::https://alchemists.io/images/projects/cogger/screenshots/simple.png[Simple,width=150,height=125]
|
|
39
|
+
|
|
40
|
+
*Detail*
|
|
41
|
+
|
|
42
|
+
image::https://alchemists.io/images/projects/cogger/screenshots/detail.png[Detail,width=350,height=130]
|
|
43
|
+
|
|
44
|
+
*JSON*
|
|
45
|
+
|
|
46
|
+
image::https://alchemists.io/images/projects/cogger/screenshots/json.png[JSON,width=803,height=130]
|
|
47
|
+
|
|
48
|
+
*Rack*
|
|
49
|
+
|
|
50
|
+
image::https://alchemists.io/images/projects/cogger/screenshots/rack.png[Rack,width=534,height=130]
|
|
29
51
|
|
|
30
52
|
== Requirements
|
|
31
53
|
|
|
@@ -220,7 +242,8 @@ Cogger.emojis
|
|
|
220
242
|
# :info => "🟢",
|
|
221
243
|
# :warn => "⚠️ ",
|
|
222
244
|
# :error => "🛑",
|
|
223
|
-
# :fatal => "🔥"
|
|
245
|
+
# :fatal => "🔥",
|
|
246
|
+
# :any => "⚫️"
|
|
224
247
|
# }
|
|
225
248
|
----
|
|
226
249
|
|
|
@@ -375,8 +398,7 @@ Cogger.aliases
|
|
|
375
398
|
# warn: :yellow,
|
|
376
399
|
# error: :red,
|
|
377
400
|
# fatal: %i[bold white on_red],
|
|
378
|
-
#
|
|
379
|
-
# any: %i[bold white]
|
|
401
|
+
# any: %i[dim bright_white]
|
|
380
402
|
# }
|
|
381
403
|
----
|
|
382
404
|
|
|
@@ -583,6 +605,8 @@ You can also use the IRB console for direct access to all objects:
|
|
|
583
605
|
bin/console
|
|
584
606
|
----
|
|
585
607
|
|
|
608
|
+
Lastly, there is a `bin/show` script which displays multiple log formats for quick visual reference. This is the same script used to generate the screenshots shown at the top of this document.
|
|
609
|
+
|
|
586
610
|
== Tests
|
|
587
611
|
|
|
588
612
|
To test, run:
|
data/cogger.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "cogger"
|
|
5
|
-
spec.version = "0.
|
|
5
|
+
spec.version = "0.10.0"
|
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
|
8
8
|
spec.homepage = "https://alchemists.io/projects/cogger"
|
|
9
|
-
spec.summary = "A customizable logger."
|
|
9
|
+
spec.summary = "A customizable and feature rich logger."
|
|
10
10
|
spec.license = "Hippocratic-2.1"
|
|
11
11
|
|
|
12
12
|
spec.metadata = {
|
|
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
|
24
24
|
|
|
25
25
|
spec.required_ruby_version = "~> 3.2"
|
|
26
|
-
spec.add_dependency "refinements", "~>
|
|
27
|
-
spec.add_dependency "tone", "~> 0.
|
|
26
|
+
spec.add_dependency "refinements", "~> 11.0"
|
|
27
|
+
spec.add_dependency "tone", "~> 0.3"
|
|
28
28
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
|
29
29
|
|
|
30
30
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
data/lib/cogger/registry.rb
CHANGED
|
@@ -10,14 +10,14 @@ module Cogger
|
|
|
10
10
|
.add_alias(:info, :green)
|
|
11
11
|
.add_alias(:warn, :yellow)
|
|
12
12
|
.add_alias(:error, :red)
|
|
13
|
-
.add_alias(:fatal,
|
|
14
|
-
.add_alias(:
|
|
15
|
-
.add_alias(:any, *%i[bold white])
|
|
13
|
+
.add_alias(:fatal, :bold, :white, :on_red)
|
|
14
|
+
.add_alias(:any, :dim, :bright_white)
|
|
16
15
|
.add_emoji(:debug, "🔎")
|
|
17
16
|
.add_emoji(:info, "🟢")
|
|
18
17
|
.add_emoji(:warn, "⚠️ ")
|
|
19
18
|
.add_emoji(:error, "🛑")
|
|
20
19
|
.add_emoji(:fatal, "🔥")
|
|
20
|
+
.add_emoji(:any, "⚫️")
|
|
21
21
|
.add_filter(:_csrf)
|
|
22
22
|
.add_filter(:password)
|
|
23
23
|
.add_filter(:password_confirmation)
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cogger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brooke Kuhlmann
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
|
36
36
|
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2023-
|
|
38
|
+
date: 2023-06-13 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: refinements
|
|
@@ -43,28 +43,28 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
46
|
+
version: '11.0'
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
53
|
+
version: '11.0'
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: tone
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '0.
|
|
60
|
+
version: '0.3'
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '0.
|
|
67
|
+
version: '0.3'
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: zeitwerk
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -133,8 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
133
|
- !ruby/object:Gem::Version
|
|
134
134
|
version: '0'
|
|
135
135
|
requirements: []
|
|
136
|
-
rubygems_version: 3.4.
|
|
136
|
+
rubygems_version: 3.4.14
|
|
137
137
|
signing_key:
|
|
138
138
|
specification_version: 4
|
|
139
|
-
summary: A customizable logger.
|
|
139
|
+
summary: A customizable and feature rich logger.
|
|
140
140
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|