delogger 0.3.0.alpha3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -13
- data/lib/delogger/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f111f1a460d9cbad9e6a206200f6528b37c7af5
|
4
|
+
data.tar.gz: f008b090fd1b3a110ba240f9e4e10ebef59e4e3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0469d96b86f876f1d6d83806baebd09e13dc3c67fe74b4ebbdefd82718486c360f9024e2d9a24654cf36b9484df96ee369ab9a19b8c5d663896dcb7c09a23123'
|
7
|
+
data.tar.gz: 8223bdbdd742c950f68385281ff215846c23d9116a75b06f221c2d68d0abee80a9ce31696586ff19aa308dc42488919323077dd389bc52589f69a38e9eeab293
|
data/README.md
CHANGED
@@ -45,14 +45,14 @@ console. You can disable it again using `logger.disable()`. DeLogger is using br
|
|
45
45
|
so you only have to enable/disable it once on your website.
|
46
46
|
|
47
47
|
DeLogger supports same output methods as console:
|
48
|
-
|
49
|
-
![debug]
|
50
|
-
|
51
|
-
![info]
|
52
|
-
|
53
|
-
![warn]
|
54
|
-
|
55
|
-
![error]
|
48
|
+
|
49
|
+
![debug](/images/debug.png?raw=true)
|
50
|
+
|
51
|
+
![info](/images/info.png?raw=true)
|
52
|
+
|
53
|
+
![warn](/images/warn.png?raw=true)
|
54
|
+
|
55
|
+
![error](/images/error.png?raw=true)
|
56
56
|
|
57
57
|
### Options
|
58
58
|
|
@@ -62,8 +62,7 @@ logger = DeLogger.new({ disabled: false, formatStrings: true })
|
|
62
62
|
```
|
63
63
|
- `disabled`: You can disable the logger globally if you want to. Normally, though, `logger.disable()`
|
64
64
|
should be enough.
|
65
|
-
- `formatStrings`: Controls whether
|
66
|
-
left unchanged.
|
65
|
+
- `formatStrings`: Controls whether string [formatting](#formatting) should be enabled.
|
67
66
|
|
68
67
|
### Focus mode
|
69
68
|
|
@@ -78,9 +77,7 @@ Supported classes: `badge`, `bold`, `italic`.
|
|
78
77
|
See also: [color classes](#color-classes).
|
79
78
|
|
80
79
|
Example:
|
81
|
-
|
82
|
-
logger.log("(MyClass#myMethod).badge.italic (@akxcv).badge.orange (bold).bold", { foo: 'bar' })
|
83
|
-
```
|
80
|
+
|
84
81
|
![Example output](/images/formatting.png?raw=true)
|
85
82
|
|
86
83
|
### Color classes
|
data/lib/delogger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delogger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Komarov
|
@@ -112,9 +112,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
120
|
rubygems_version: 2.6.8
|