@alwatr/logger 2.1.2 → 2.2.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.
- package/CHANGELOG.md +129 -113
- package/package.json +8 -5
- package/type.d.ts +1 -1
- package/type.d.ts.map +1 -1
- package/type.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,66 +3,82 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [2.2.0](https://github.com/Alwatr/eslib/compare/@alwatr/logger@2.1.3...@alwatr/logger@2.2.0) (2023-11-14)
|
|
7
7
|
|
|
8
8
|
### Bug Fixes
|
|
9
9
|
|
|
10
|
-
* **logger:**
|
|
10
|
+
* **logger:** logger.banner type ([1f2586d](https://github.com/Alwatr/eslib/commit/1f2586dab65608c4a54f20859f4ea2dda6028c7c)) by @
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **yarn:** pnp ([b6a562c](https://github.com/Alwatr/eslib/commit/b6a562c909a35b3e626442e5c325da3fce448e1b)) by @AliMD
|
|
15
|
+
|
|
16
|
+
## [2.1.3](https://github.com/Alwatr/eslib/compare/@alwatr/logger@2.1.2...@alwatr/logger@2.1.3) (2023-11-08)
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* move repo urls ([719aa3e](https://github.com/Alwatr/eslib/commit/719aa3e7462d3c9c6272958fc93f89fda6793fb1)) by @AliMD
|
|
21
|
+
|
|
22
|
+
## [2.1.2](https://github.com/Alwatr/eslib/compare/@alwatr/logger@2.1.1...@alwatr/logger@2.1.2) (2023-11-01)
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **logger:** show duplicate_old_package_defined error after all packages designed ([8bb3410](https://github.com/Alwatr/eslib/commit/8bb341033091d25d1128127e00fafdafc25d1827)) by @
|
|
27
|
+
|
|
28
|
+
## [2.1.1](https://github.com/Alwatr/eslib/compare/@alwatr/logger@2.1.0...@alwatr/logger@2.1.1) (2023-10-23)
|
|
13
29
|
|
|
14
30
|
**Note:** Version bump only for package @alwatr/logger
|
|
15
31
|
|
|
16
|
-
# [2.1.0](https://github.com/
|
|
32
|
+
# [2.1.0](https://github.com/Alwatr/eslib/compare/@alwatr/logger@2.0.0...@alwatr/logger@2.1.0) (2023-10-23)
|
|
17
33
|
|
|
18
34
|
### Features
|
|
19
35
|
|
|
20
|
-
* **logger:** accident if old Alwatr.registeredList found ([d0ae735](https://github.com/
|
|
36
|
+
* **logger:** accident if old Alwatr.registeredList found ([d0ae735](https://github.com/Alwatr/eslib/commit/d0ae735b2b54cc75a380902d9fbe9dddaad650f4)) by @
|
|
21
37
|
|
|
22
|
-
# [2.0.0](https://github.com/
|
|
38
|
+
# [2.0.0](https://github.com/Alwatr/eslib/compare/@alwatr/logger@1.2.0...@alwatr/logger@2.0.0) (2023-10-23)
|
|
23
39
|
|
|
24
40
|
### Bug Fixes
|
|
25
41
|
|
|
26
|
-
* **logger:** remove globalAlwatr ([e7a7236](https://github.com/
|
|
42
|
+
* **logger:** remove globalAlwatr ([e7a7236](https://github.com/Alwatr/eslib/commit/e7a72361715cbeb05c5dea4dbff7c2b583d2eab2)) by @AliMD
|
|
27
43
|
|
|
28
44
|
### Features
|
|
29
45
|
|
|
30
|
-
* **logger:** define logger package ([5beaaf4](https://github.com/
|
|
31
|
-
* **logger:** definePackage, the new api for global alwatr ([e3635e2](https://github.com/
|
|
32
|
-
* **logger:** remove desc from incident & accident ([fa38b68](https://github.com/
|
|
46
|
+
* **logger:** define logger package ([5beaaf4](https://github.com/Alwatr/eslib/commit/5beaaf4f6f2f74d4976f9d0d58927526f283d5f9)) by @AliMD
|
|
47
|
+
* **logger:** definePackage, the new api for global alwatr ([e3635e2](https://github.com/Alwatr/eslib/commit/e3635e2012e5ab5a79622693c5bf7c4639840258)) by @AliMD
|
|
48
|
+
* **logger:** remove desc from incident & accident ([fa38b68](https://github.com/Alwatr/eslib/commit/fa38b68ce63524f1b53f3ad135450289eff66ae8)) by @AliMD
|
|
33
49
|
|
|
34
50
|
### BREAKING CHANGES
|
|
35
51
|
|
|
36
52
|
* **logger:** remove desc from incident & accident
|
|
37
53
|
* **logger:** global Alwatr.registeredList not exist anymore
|
|
38
54
|
|
|
39
|
-
# [1.2.0](https://github.com/
|
|
55
|
+
# [1.2.0](https://github.com/Alwatr/eslib/compare/@alwatr/logger@1.1.5...@alwatr/logger@1.2.0) (2023-10-23)
|
|
40
56
|
|
|
41
57
|
### Features
|
|
42
58
|
|
|
43
|
-
* **logger:** banner method ([3e3af6d](https://github.com/
|
|
59
|
+
* **logger:** banner method ([3e3af6d](https://github.com/Alwatr/eslib/commit/3e3af6d71ccecaaf14ca9d63a8a14c7239afe697)) by @
|
|
44
60
|
|
|
45
|
-
## [1.1.5](https://github.com/
|
|
61
|
+
## [1.1.5](https://github.com/Alwatr/eslib/compare/@alwatr/logger@1.1.4...@alwatr/logger@1.1.5) (2023-09-19)
|
|
46
62
|
|
|
47
63
|
### Bug Fixes
|
|
48
64
|
|
|
49
|
-
- package repo urls ([466cbe9](https://github.com/
|
|
65
|
+
- package repo urls ([466cbe9](https://github.com/Alwatr/eslib/commit/466cbe9188f24e1a1bc36d879a95b52538a58f16)) by @AliMD
|
|
50
66
|
|
|
51
|
-
## [1.1.4](https://github.com/
|
|
67
|
+
## [1.1.4](https://github.com/Alwatr/eslib/compare/@alwatr/logger@1.1.3...@alwatr/logger@1.1.4) (2023-09-19)
|
|
52
68
|
|
|
53
69
|
**Note:** Version bump only for package @alwatr/logger
|
|
54
70
|
|
|
55
|
-
## [1.1.3](https://github.com/
|
|
71
|
+
## [1.1.3](https://github.com/Alwatr/eslib/compare/@alwatr/logger@1.1.2...@alwatr/logger@1.1.3) (2023-09-19)
|
|
56
72
|
|
|
57
73
|
**Note:** Version bump only for package @alwatr/logger
|
|
58
74
|
|
|
59
|
-
## [1.1.2](https://github.com/
|
|
75
|
+
## [1.1.2](https://github.com/Alwatr/eslib/compare/@alwatr/logger@1.1.1...@alwatr/logger@1.1.2) (2023-09-12)
|
|
60
76
|
|
|
61
77
|
### Bug Fixes
|
|
62
78
|
|
|
63
|
-
- **logger:** change localStorage debug key to `alwatrDebug` ([66542ea](https://github.com/
|
|
79
|
+
- **logger:** change localStorage debug key to `alwatrDebug` ([66542ea](https://github.com/Alwatr/eslib/commit/66542ea22a9a515db4a15dc966624b3029f517ed)) by @AliMD
|
|
64
80
|
|
|
65
|
-
## [1.1.1](https://github.com/
|
|
81
|
+
## [1.1.1](https://github.com/Alwatr/eslib/compare/@alwatr/logger@1.1.0...@alwatr/logger@1.1.1) (2023-09-12)
|
|
66
82
|
|
|
67
83
|
**Note:** Version bump only for package @alwatr/logger
|
|
68
84
|
|
|
@@ -70,7 +86,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
70
86
|
|
|
71
87
|
### Features
|
|
72
88
|
|
|
73
|
-
- **logger:** add logModule ([2e37bef](https://github.com/
|
|
89
|
+
- **logger:** add logModule ([2e37bef](https://github.com/Alwatr/eslib/commit/2e37befd5f66094c5a521424e2a9d60796384f88))
|
|
74
90
|
|
|
75
91
|
# 1.0.0 (2023-06-14)
|
|
76
92
|
|
|
@@ -80,21 +96,21 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
80
96
|
|
|
81
97
|
### Bug Fixes
|
|
82
98
|
|
|
83
|
-
- **logger:** logMethod args type ([66338b7](https://github.com/
|
|
84
|
-
- **logger:** logMethod args type ([1983b3d](https://github.com/
|
|
85
|
-
- new logger api ([9d83a7d](https://github.com/
|
|
99
|
+
- **logger:** logMethod args type ([66338b7](https://github.com/Alwatr/eslib/commit/66338b7ba1d4b15af78f9f604f7be0a7e483413d))
|
|
100
|
+
- **logger:** logMethod args type ([1983b3d](https://github.com/Alwatr/eslib/commit/1983b3d2fe260226ca2660e33b9bd924facdf776))
|
|
101
|
+
- new logger api ([9d83a7d](https://github.com/Alwatr/eslib/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))
|
|
86
102
|
|
|
87
103
|
### Features
|
|
88
104
|
|
|
89
|
-
- **logger:** add `duration time` to logger time label ([ef188c4](https://github.com/
|
|
90
|
-
- **logger:** add `time` & `timeEnd` ([0bd4ec5](https://github.com/
|
|
91
|
-
- **logger:** optional devMode per package ([cc1eb87](https://github.com/
|
|
105
|
+
- **logger:** add `duration time` to logger time label ([ef188c4](https://github.com/Alwatr/eslib/commit/ef188c41a02789e1b35ab424bab24a393a03a3b0))
|
|
106
|
+
- **logger:** add `time` & `timeEnd` ([0bd4ec5](https://github.com/Alwatr/eslib/commit/0bd4ec5dbd185b17cfb8656a84a782e848ade138))
|
|
107
|
+
- **logger:** optional devMode per package ([cc1eb87](https://github.com/Alwatr/eslib/commit/cc1eb879832807d55ad4cf268a54b2d5e4346fff))
|
|
92
108
|
|
|
93
109
|
# 0.30.0 (2023-03-06)
|
|
94
110
|
|
|
95
111
|
### Features
|
|
96
112
|
|
|
97
|
-
- **logger:** export isBrowser ([5b5be8b](https://github.com/
|
|
113
|
+
- **logger:** export isBrowser ([5b5be8b](https://github.com/Alwatr/eslib/commit/5b5be8b2312ca67f186d1614506423f1fdb90877))
|
|
98
114
|
|
|
99
115
|
# 0.29.0 (2023-02-10)
|
|
100
116
|
|
|
@@ -102,260 +118,260 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
102
118
|
|
|
103
119
|
### Bug Fixes
|
|
104
120
|
|
|
105
|
-
- **logger:** _ALWATR_VERSION_ ([9cf8f20](https://github.com/
|
|
121
|
+
- **logger:** _ALWATR_VERSION_ ([9cf8f20](https://github.com/Alwatr/eslib/commit/9cf8f208e8adbfa2e2c622a8465453d5554cbd37))
|
|
106
122
|
|
|
107
123
|
# 0.27.0 (2022-12-29)
|
|
108
124
|
|
|
109
125
|
### Bug Fixes
|
|
110
126
|
|
|
111
|
-
- **logger:** version ([2295fee](https://github.com/
|
|
127
|
+
- **logger:** version ([2295fee](https://github.com/Alwatr/eslib/commit/2295fee74e8eebd9db399129de31f2b0d6d6b168))
|
|
112
128
|
|
|
113
129
|
### Features
|
|
114
130
|
|
|
115
|
-
- **type:** define alwatrRegistredList ([25406c2](https://github.com/
|
|
131
|
+
- **type:** define alwatrRegistredList ([25406c2](https://github.com/Alwatr/eslib/commit/25406c268f39cf3e055ea05c9fc7b50bd3dd0a17))
|
|
116
132
|
|
|
117
133
|
# 0.26.0 (2022-12-22)
|
|
118
134
|
|
|
119
135
|
### Bug Fixes
|
|
120
136
|
|
|
121
|
-
- set correct path ([d01ce6f](https://github.com/
|
|
122
|
-
- tsconfig ([e96dcd3](https://github.com/
|
|
137
|
+
- set correct path ([d01ce6f](https://github.com/Alwatr/eslib/commit/d01ce6ffa749a5e3e0e11e35b4ed61d75d61fec9))
|
|
138
|
+
- tsconfig ([e96dcd3](https://github.com/Alwatr/eslib/commit/e96dcd30774a9f06f7d051e0504192cbbe019e35))
|
|
123
139
|
|
|
124
140
|
### Features
|
|
125
141
|
|
|
126
|
-
- improve error debugging ([1fba504](https://github.com/
|
|
127
|
-
- **logger:** add root version ([2ac01c1](https://github.com/
|
|
128
|
-
- **logger:** move incident to deployment mode ([4ee8dac](https://github.com/
|
|
142
|
+
- improve error debugging ([1fba504](https://github.com/Alwatr/eslib/commit/1fba50400a1e8ececc10bbe8ea11cc8dcea2289c))
|
|
143
|
+
- **logger:** add root version ([2ac01c1](https://github.com/Alwatr/eslib/commit/2ac01c1d12323a6c8591b3dd4826d08a55647dc1))
|
|
144
|
+
- **logger:** move incident to deployment mode ([4ee8dac](https://github.com/Alwatr/eslib/commit/4ee8dac5c54ce8a897382d3d4fb5bb852d24cf24))
|
|
129
145
|
|
|
130
|
-
# [1.0.0](https://github.com/
|
|
146
|
+
# [1.0.0](https://github.com/Alwatr/eslib/compare/v0.32.0...v1.0.0) (2023-06-14)
|
|
131
147
|
|
|
132
148
|
**Note:** Version bump only for package @alwatr/logger
|
|
133
149
|
|
|
134
|
-
# [0.32.0](https://github.com/
|
|
150
|
+
# [0.32.0](https://github.com/Alwatr/eslib/compare/v0.31.0...v0.32.0) (2023-05-27)
|
|
135
151
|
|
|
136
152
|
**Note:** Version bump only for package @alwatr/logger
|
|
137
153
|
|
|
138
|
-
# [0.31.0](https://github.com/
|
|
154
|
+
# [0.31.0](https://github.com/Alwatr/eslib/compare/v0.30.0...v0.31.0) (2023-05-08)
|
|
139
155
|
|
|
140
156
|
### Bug Fixes
|
|
141
157
|
|
|
142
|
-
- **logger:** logMethod args type ([66338b7](https://github.com/
|
|
143
|
-
- **logger:** logMethod args type ([1983b3d](https://github.com/
|
|
144
|
-
- new logger api ([9d83a7d](https://github.com/
|
|
158
|
+
- **logger:** logMethod args type ([66338b7](https://github.com/Alwatr/eslib/commit/66338b7ba1d4b15af78f9f604f7be0a7e483413d))
|
|
159
|
+
- **logger:** logMethod args type ([1983b3d](https://github.com/Alwatr/eslib/commit/1983b3d2fe260226ca2660e33b9bd924facdf776))
|
|
160
|
+
- new logger api ([9d83a7d](https://github.com/Alwatr/eslib/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))
|
|
145
161
|
|
|
146
162
|
### Features
|
|
147
163
|
|
|
148
|
-
- **logger:** add `duration time` to logger time label ([ef188c4](https://github.com/
|
|
149
|
-
- **logger:** add `time` & `timeEnd` ([0bd4ec5](https://github.com/
|
|
150
|
-
- **logger:** optional devMode per package ([cc1eb87](https://github.com/
|
|
164
|
+
- **logger:** add `duration time` to logger time label ([ef188c4](https://github.com/Alwatr/eslib/commit/ef188c41a02789e1b35ab424bab24a393a03a3b0))
|
|
165
|
+
- **logger:** add `time` & `timeEnd` ([0bd4ec5](https://github.com/Alwatr/eslib/commit/0bd4ec5dbd185b17cfb8656a84a782e848ade138))
|
|
166
|
+
- **logger:** optional devMode per package ([cc1eb87](https://github.com/Alwatr/eslib/commit/cc1eb879832807d55ad4cf268a54b2d5e4346fff))
|
|
151
167
|
|
|
152
|
-
# [0.30.0](https://github.com/
|
|
168
|
+
# [0.30.0](https://github.com/Alwatr/eslib/compare/v0.29.0...v0.30.0) (2023-03-06)
|
|
153
169
|
|
|
154
170
|
### Features
|
|
155
171
|
|
|
156
|
-
- **logger:** export isBrowser ([5b5be8b](https://github.com/
|
|
172
|
+
- **logger:** export isBrowser ([5b5be8b](https://github.com/Alwatr/eslib/commit/5b5be8b2312ca67f186d1614506423f1fdb90877))
|
|
157
173
|
|
|
158
|
-
# [0.29.0](https://github.com/
|
|
174
|
+
# [0.29.0](https://github.com/Alwatr/eslib/compare/v0.28.0...v0.29.0) (2023-02-10)
|
|
159
175
|
|
|
160
176
|
**Note:** Version bump only for package @alwatr/logger
|
|
161
177
|
|
|
162
|
-
# [0.28.0](https://github.com/
|
|
178
|
+
# [0.28.0](https://github.com/Alwatr/eslib/compare/v0.27.0...v0.28.0) (2023-01-20)
|
|
163
179
|
|
|
164
180
|
### Bug Fixes
|
|
165
181
|
|
|
166
|
-
- **logger:** _ALWATR_VERSION_ ([9cf8f20](https://github.com/
|
|
182
|
+
- **logger:** _ALWATR_VERSION_ ([9cf8f20](https://github.com/Alwatr/eslib/commit/9cf8f208e8adbfa2e2c622a8465453d5554cbd37))
|
|
167
183
|
|
|
168
184
|
### Features
|
|
169
185
|
|
|
170
|
-
- **type:** define alwatrRegistredList ([25406c2](https://github.com/
|
|
186
|
+
- **type:** define alwatrRegistredList ([25406c2](https://github.com/Alwatr/eslib/commit/25406c268f39cf3e055ea05c9fc7b50bd3dd0a17))
|
|
171
187
|
|
|
172
|
-
# [0.27.0](https://github.com/
|
|
188
|
+
# [0.27.0](https://github.com/Alwatr/eslib/compare/v0.26.0...v0.27.0) (2022-12-29)
|
|
173
189
|
|
|
174
190
|
### Bug Fixes
|
|
175
191
|
|
|
176
|
-
- **logger:** version ([2295fee](https://github.com/
|
|
192
|
+
- **logger:** version ([2295fee](https://github.com/Alwatr/eslib/commit/2295fee74e8eebd9db399129de31f2b0d6d6b168))
|
|
177
193
|
|
|
178
|
-
# [0.26.0](https://github.com/
|
|
194
|
+
# [0.26.0](https://github.com/Alwatr/eslib/compare/v0.25.0...v0.26.0) (2022-12-22)
|
|
179
195
|
|
|
180
196
|
### Bug Fixes
|
|
181
197
|
|
|
182
|
-
- set correct path ([d01ce6f](https://github.com/
|
|
183
|
-
- tsconfig ([e96dcd3](https://github.com/
|
|
198
|
+
- set correct path ([d01ce6f](https://github.com/Alwatr/eslib/commit/d01ce6ffa749a5e3e0e11e35b4ed61d75d61fec9))
|
|
199
|
+
- tsconfig ([e96dcd3](https://github.com/Alwatr/eslib/commit/e96dcd30774a9f06f7d051e0504192cbbe019e35))
|
|
184
200
|
|
|
185
201
|
### Features
|
|
186
202
|
|
|
187
|
-
- improve error debugging ([1fba504](https://github.com/
|
|
188
|
-
- **logger:** add root version ([2ac01c1](https://github.com/
|
|
189
|
-
- **logger:** move incident to deployment mode ([4ee8dac](https://github.com/
|
|
203
|
+
- improve error debugging ([1fba504](https://github.com/Alwatr/eslib/commit/1fba50400a1e8ececc10bbe8ea11cc8dcea2289c))
|
|
204
|
+
- **logger:** add root version ([2ac01c1](https://github.com/Alwatr/eslib/commit/2ac01c1d12323a6c8591b3dd4826d08a55647dc1))
|
|
205
|
+
- **logger:** move incident to deployment mode ([4ee8dac](https://github.com/Alwatr/eslib/commit/4ee8dac5c54ce8a897382d3d4fb5bb852d24cf24))
|
|
190
206
|
|
|
191
|
-
# [0.25.0](https://github.com/
|
|
207
|
+
# [0.25.0](https://github.com/Alwatr/eslib/compare/v0.24.1...v0.25.0) (2022-12-07)
|
|
192
208
|
|
|
193
209
|
### Features
|
|
194
210
|
|
|
195
|
-
- **logger:** log incident in production mode ([c9b6c56](https://github.com/
|
|
211
|
+
- **logger:** log incident in production mode ([c9b6c56](https://github.com/Alwatr/eslib/commit/c9b6c56182750444b1cced3343b02eea6a9f24c5))
|
|
196
212
|
|
|
197
|
-
## [0.24.1](https://github.com/
|
|
213
|
+
## [0.24.1](https://github.com/Alwatr/eslib/compare/v0.24.0...v0.24.1) (2022-12-01)
|
|
198
214
|
|
|
199
215
|
### Bug Fixes
|
|
200
216
|
|
|
201
|
-
- **logger:** optimize for browserify builds ([7afdc1c](https://github.com/
|
|
217
|
+
- **logger:** optimize for browserify builds ([7afdc1c](https://github.com/Alwatr/eslib/commit/7afdc1cb5baf9b66dedcdc251595c02a79a163b2))
|
|
202
218
|
|
|
203
|
-
# [0.24.0](https://github.com/
|
|
219
|
+
# [0.24.0](https://github.com/Alwatr/eslib/compare/v0.23.0...v0.24.0) (2022-11-28)
|
|
204
220
|
|
|
205
221
|
### Bug Fixes
|
|
206
222
|
|
|
207
|
-
- use ~ for package version ([4e027ff](https://github.com/
|
|
223
|
+
- use ~ for package version ([4e027ff](https://github.com/Alwatr/eslib/commit/4e027ff63875e03b088ebcdc1bdf2495f4494eec))
|
|
208
224
|
|
|
209
|
-
# [0.23.0](https://github.com/
|
|
225
|
+
# [0.23.0](https://github.com/Alwatr/eslib/compare/v0.22.1...v0.23.0) (2022-11-23)
|
|
210
226
|
|
|
211
227
|
**Note:** Version bump only for package @alwatr/logger
|
|
212
228
|
|
|
213
|
-
# [0.22.0](https://github.com/
|
|
229
|
+
# [0.22.0](https://github.com/Alwatr/eslib/compare/v0.21.0...v0.22.0) (2022-11-20)
|
|
214
230
|
|
|
215
231
|
### Bug Fixes
|
|
216
232
|
|
|
217
|
-
- **logger:** message format in node ([0ab9153](https://github.com/
|
|
233
|
+
- **logger:** message format in node ([0ab9153](https://github.com/Alwatr/eslib/commit/0ab9153e407cafd07af8b77b63e25c8d21b474c0))
|
|
218
234
|
|
|
219
235
|
### Features
|
|
220
236
|
|
|
221
|
-
- **logger:** better log in browser and node ([1a35ac4](https://github.com/
|
|
237
|
+
- **logger:** better log in browser and node ([1a35ac4](https://github.com/Alwatr/eslib/commit/1a35ac4bbb9aae4280ea99b8383459cf44de0baa))
|
|
222
238
|
|
|
223
|
-
# [0.21.0](https://github.com/
|
|
239
|
+
# [0.21.0](https://github.com/Alwatr/eslib/compare/v0.20.0...v0.21.0) (2022-11-13)
|
|
224
240
|
|
|
225
241
|
**Note:** Version bump only for package @alwatr/logger
|
|
226
242
|
|
|
227
|
-
# [0.20.0](https://github.com/
|
|
243
|
+
# [0.20.0](https://github.com/Alwatr/eslib/compare/v0.19.0...v0.20.0) (2022-11-05)
|
|
228
244
|
|
|
229
245
|
**Note:** Version bump only for package @alwatr/logger
|
|
230
246
|
|
|
231
|
-
# [0.19.0](https://github.com/
|
|
247
|
+
# [0.19.0](https://github.com/Alwatr/eslib/compare/v0.18.0...v0.19.0) (2022-11-01)
|
|
232
248
|
|
|
233
249
|
### Bug Fixes
|
|
234
250
|
|
|
235
|
-
- Import error in webpack ([1a52f67](https://github.com/
|
|
251
|
+
- Import error in webpack ([1a52f67](https://github.com/Alwatr/eslib/commit/1a52f67ff2788c51abd13126f34353c26aa669c3))
|
|
236
252
|
|
|
237
|
-
# [0.18.0](https://github.com/
|
|
253
|
+
# [0.18.0](https://github.com/Alwatr/eslib/compare/v0.17.0...v0.18.0) (2022-10-22)
|
|
238
254
|
|
|
239
255
|
**Note:** Version bump only for package @alwatr/logger
|
|
240
256
|
|
|
241
|
-
# [0.17.0](https://github.com/
|
|
257
|
+
# [0.17.0](https://github.com/Alwatr/eslib/compare/v0.16.1...v0.17.0) (2022-10-21)
|
|
242
258
|
|
|
243
259
|
### Bug Fixes
|
|
244
260
|
|
|
245
|
-
- **`logger`:** `accident` sould `console.warn` ([c210c9f](https://github.com/
|
|
261
|
+
- **`logger`:** `accident` sould `console.warn` ([c210c9f](https://github.com/Alwatr/eslib/commit/c210c9f6a864692848ea0c89d6ffbdb19167732a))
|
|
246
262
|
|
|
247
|
-
# [0.16.0](https://github.com/
|
|
263
|
+
# [0.16.0](https://github.com/Alwatr/eslib/compare/v0.15.0...v0.16.0) (2022-09-08)
|
|
248
264
|
|
|
249
265
|
**Note:** Version bump only for package @alwatr/logger
|
|
250
266
|
|
|
251
|
-
# [0.15.0](https://github.com/
|
|
267
|
+
# [0.15.0](https://github.com/Alwatr/eslib/compare/v0.14.0...v0.15.0) (2022-09-01)
|
|
252
268
|
|
|
253
269
|
**Note:** Version bump only for package @alwatr/logger
|
|
254
270
|
|
|
255
|
-
# [0.14.0](https://github.com/
|
|
271
|
+
# [0.14.0](https://github.com/Alwatr/eslib/compare/v0.13.0...v0.14.0) (2022-08-19)
|
|
256
272
|
|
|
257
273
|
**Note:** Version bump only for package @alwatr/logger
|
|
258
274
|
|
|
259
|
-
# [0.13.0](https://github.com/
|
|
275
|
+
# [0.13.0](https://github.com/Alwatr/eslib/compare/v0.12.0...v0.13.0) (2022-08-06)
|
|
260
276
|
|
|
261
277
|
**Note:** Version bump only for package @alwatr/logger
|
|
262
278
|
|
|
263
|
-
# [0.12.0](https://github.com/
|
|
279
|
+
# [0.12.0](https://github.com/Alwatr/eslib/compare/v0.11.0...v0.12.0) (2022-07-22)
|
|
264
280
|
|
|
265
281
|
### Bug Fixes
|
|
266
282
|
|
|
267
|
-
- **logger:** refactor behavior of force ([7d9307b](https://github.com/
|
|
283
|
+
- **logger:** refactor behavior of force ([7d9307b](https://github.com/Alwatr/eslib/commit/7d9307bb78523f3dae17b3bd80fa2fb47c90975f))
|
|
268
284
|
|
|
269
285
|
### Features
|
|
270
286
|
|
|
271
|
-
- **logger:** compatible with node.js ([7ee8b6d](https://github.com/
|
|
272
|
-
- **logger:** node coloring support ([2b4aab6](https://github.com/
|
|
287
|
+
- **logger:** compatible with node.js ([7ee8b6d](https://github.com/Alwatr/eslib/commit/7ee8b6de3143e39c300345dec6864c9c56a4aae7))
|
|
288
|
+
- **logger:** node coloring support ([2b4aab6](https://github.com/Alwatr/eslib/commit/2b4aab655bc0707761587a7439de98bbd4ad0e08))
|
|
273
289
|
|
|
274
|
-
# [0.11.0](https://github.com/
|
|
290
|
+
# [0.11.0](https://github.com/Alwatr/eslib/compare/v0.10.1...v0.11.0) (2022-04-16)
|
|
275
291
|
|
|
276
292
|
**Note:** Version bump only for package @alwatr/logger
|
|
277
293
|
|
|
278
|
-
# [0.10.0](https://github.com/
|
|
294
|
+
# [0.10.0](https://github.com/Alwatr/eslib/compare/v0.9.0...v0.10.0) (2022-04-02)
|
|
279
295
|
|
|
280
296
|
**Note:** Version bump only for package @alwatr/logger
|
|
281
297
|
|
|
282
|
-
# [0.9.0](https://github.com/
|
|
298
|
+
# [0.9.0](https://github.com/Alwatr/eslib/compare/v0.8.0...v0.9.0) (2022-03-22)
|
|
283
299
|
|
|
284
300
|
**Note:** Version bump only for package @alwatr/logger
|
|
285
301
|
|
|
286
|
-
# [0.8.0](https://github.com/
|
|
302
|
+
# [0.8.0](https://github.com/Alwatr/eslib/compare/v0.7.2...v0.8.0) (2022-03-14)
|
|
287
303
|
|
|
288
304
|
**Note:** Version bump only for package @alwatr/logger
|
|
289
305
|
|
|
290
|
-
## [0.7.2](https://github.com/
|
|
306
|
+
## [0.7.2](https://github.com/Alwatr/eslib/compare/v0.7.1...v0.7.2) (2022-03-12)
|
|
291
307
|
|
|
292
308
|
### Features
|
|
293
309
|
|
|
294
|
-
- **logger:** add debug and improve documents ([8f83d29](https://github.com/
|
|
310
|
+
- **logger:** add debug and improve documents ([8f83d29](https://github.com/Alwatr/eslib/commit/8f83d2956e521f016fe530322f657c343f1a0b80))
|
|
295
311
|
|
|
296
|
-
# [0.7.0](https://github.com/
|
|
312
|
+
# [0.7.0](https://github.com/Alwatr/eslib/compare/v0.6.1...v0.7.0) (2022-03-12)
|
|
297
313
|
|
|
298
314
|
**Note:** Version bump only for package @alwatr/logger
|
|
299
315
|
|
|
300
|
-
# [0.6.0](https://github.com/
|
|
316
|
+
# [0.6.0](https://github.com/Alwatr/eslib/compare/v0.5.0...v0.6.0) (2022-03-11)
|
|
301
317
|
|
|
302
318
|
### Bug Fixes
|
|
303
319
|
|
|
304
|
-
- alalwatr ([898aa6e](https://github.com/
|
|
305
|
-
- **packages:** duplicate alwatr keyword ([77d4aa2](https://github.com/
|
|
320
|
+
- alalwatr ([898aa6e](https://github.com/Alwatr/eslib/commit/898aa6ed0888eab9265c83b96a50f1b8c216d143))
|
|
321
|
+
- **packages:** duplicate alwatr keyword ([77d4aa2](https://github.com/Alwatr/eslib/commit/77d4aa2105ad47515c3eee251fd6b8c281d0d1fc))
|
|
306
322
|
|
|
307
|
-
# [0.5.0](https://github.com/
|
|
323
|
+
# [0.5.0](https://github.com/Alwatr/eslib/compare/v0.4.0...v0.5.0) (2022-03-11)
|
|
308
324
|
|
|
309
325
|
### Performance Improvements
|
|
310
326
|
|
|
311
|
-
- **logger:** refactor making logger object ([bc38018](https://github.com/
|
|
327
|
+
- **logger:** refactor making logger object ([bc38018](https://github.com/Alwatr/eslib/commit/bc38018758540130df2f46c44521aea0a867bbe8))
|
|
312
328
|
|
|
313
|
-
# [0.4.0](https://github.com/
|
|
329
|
+
# [0.4.0](https://github.com/Alwatr/eslib/compare/v0.3.0...v0.4.0) (2022-03-11)
|
|
314
330
|
|
|
315
331
|
### Bug Fixes
|
|
316
332
|
|
|
317
|
-
- **logger:** types missing ([712363d](https://github.com/
|
|
333
|
+
- **logger:** types missing ([712363d](https://github.com/Alwatr/eslib/commit/712363d3cf77a712f8c801c4dc9d06d256dfc0e6))
|
|
318
334
|
|
|
319
335
|
### Features
|
|
320
336
|
|
|
321
|
-
- **logger:** add logProperty, logMethodFull ([8b0317d](https://github.com/
|
|
322
|
-
- **logger:** complete refactor the logger with new API and fix show correct line number ([7efe8cf](https://github.com/
|
|
337
|
+
- **logger:** add logProperty, logMethodFull ([8b0317d](https://github.com/Alwatr/eslib/commit/8b0317db88ed73604a27935a3a30cd5c31cb0804))
|
|
338
|
+
- **logger:** complete refactor the logger with new API and fix show correct line number ([7efe8cf](https://github.com/Alwatr/eslib/commit/7efe8cf0f566e148406f38fdd60fa3d747c9bc51))
|
|
323
339
|
|
|
324
|
-
# [0.3.0](https://github.com/
|
|
340
|
+
# [0.3.0](https://github.com/Alwatr/eslib/compare/v0.2.1...v0.3.0) (2022-03-06)
|
|
325
341
|
|
|
326
342
|
**Note:** Version bump only for package @alwatr/logger
|
|
327
343
|
|
|
328
|
-
## [0.2.1](https://github.com/
|
|
344
|
+
## [0.2.1](https://github.com/Alwatr/eslib/compare/v0.2.0...v0.2.1) (2022-03-05)
|
|
329
345
|
|
|
330
346
|
### Bug Fixes
|
|
331
347
|
|
|
332
|
-
- **logger:** alwatrRegisteredList name ([ff59133](https://github.com/
|
|
348
|
+
- **logger:** alwatrRegisteredList name ([ff59133](https://github.com/Alwatr/eslib/commit/ff5913321c4eafa1ce53fdacebf8fb4f23bfe430))
|
|
333
349
|
|
|
334
|
-
# [0.2.0](https://github.com/
|
|
350
|
+
# [0.2.0](https://github.com/Alwatr/eslib/compare/v0.1.2...v0.2.0) (2022-03-05)
|
|
335
351
|
|
|
336
352
|
**Note:** Version bump only for package @alwatr/logger
|
|
337
353
|
|
|
338
|
-
## [0.1.2](https://github.com/
|
|
354
|
+
## [0.1.2](https://github.com/Alwatr/eslib/compare/v0.1.1...v0.1.2) (2022-03-03)
|
|
339
355
|
|
|
340
356
|
**Note:** Version bump only for package @alwatr/logger
|
|
341
357
|
|
|
342
|
-
## [0.1.1](https://github.com/
|
|
358
|
+
## [0.1.1](https://github.com/Alwatr/eslib/compare/v0.1.0...v0.1.1) (2022-03-03)
|
|
343
359
|
|
|
344
360
|
### Bug Fixes
|
|
345
361
|
|
|
346
|
-
- **packages:** add publish config to public ([9cb3710](https://github.com/
|
|
362
|
+
- **packages:** add publish config to public ([9cb3710](https://github.com/Alwatr/eslib/commit/9cb37106b5a35d24d5195ff54232e5769ccc034e))
|
|
347
363
|
|
|
348
364
|
# 0.1.0 (2022-03-02)
|
|
349
365
|
|
|
350
366
|
### Bug Fixes
|
|
351
367
|
|
|
352
|
-
- **logger:** fix debug scope ([be62f14](https://github.com/
|
|
353
|
-
- **logger:** fix logger debug scope ([e734d21](https://github.com/
|
|
354
|
-
- tsconfig issues ([159adeb](https://github.com/
|
|
368
|
+
- **logger:** fix debug scope ([be62f14](https://github.com/Alwatr/eslib/commit/be62f142cbe3fe4d328e3fd9941ea7c2d640a23f))
|
|
369
|
+
- **logger:** fix logger debug scope ([e734d21](https://github.com/Alwatr/eslib/commit/e734d218db888ecec33a03dc805b98dd75543efd))
|
|
370
|
+
- tsconfig issues ([159adeb](https://github.com/Alwatr/eslib/commit/159adeb72de4626dc16f6657765605b0a2ddccb1))
|
|
355
371
|
|
|
356
372
|
### Features
|
|
357
373
|
|
|
358
|
-
- **logger:** debug scope ([6e4190d](https://github.com/
|
|
359
|
-
- **logger:** debug scope logger package ([1a4baeb](https://github.com/
|
|
360
|
-
- **logger:** alwatr logger package ([711268e](https://github.com/
|
|
361
|
-
- **logger:** alwatr meta structure ([feade73](https://github.com/
|
|
374
|
+
- **logger:** debug scope ([6e4190d](https://github.com/Alwatr/eslib/commit/6e4190dc9dafc28e3a7a481aa43622a23527993c))
|
|
375
|
+
- **logger:** debug scope logger package ([1a4baeb](https://github.com/Alwatr/eslib/commit/1a4baeb7a253ba66563dbcf06079242dabb9f246))
|
|
376
|
+
- **logger:** alwatr logger package ([711268e](https://github.com/Alwatr/eslib/commit/711268e17dea8ada9c901ef1e9d605b3212abd97))
|
|
377
|
+
- **logger:** alwatr meta structure ([feade73](https://github.com/Alwatr/eslib/commit/feade735a6f141db77b81d7791d8872d45c8bf7e))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/logger",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Fancy colorful console debugger with custom scope written in tiny TypeScript, ES module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"log",
|
|
@@ -24,15 +24,18 @@
|
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "https://github.com/
|
|
27
|
+
"url": "https://github.com/Alwatr/eslib",
|
|
28
28
|
"directory": "packages/logger"
|
|
29
29
|
},
|
|
30
|
-
"homepage": "https://github.com/
|
|
30
|
+
"homepage": "https://github.com/Alwatr/eslib/tree/next/packages/logger#readme",
|
|
31
31
|
"bugs": {
|
|
32
|
-
"url": "https://github.com/
|
|
32
|
+
"url": "https://github.com/Alwatr/eslib/issues"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
|
-
"
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^20.9.0"
|
|
39
|
+
},
|
|
40
|
+
"gitHead": "c9c6d5abf5e2aeafa915fde58c73e030ac00db27"
|
|
38
41
|
}
|
package/type.d.ts
CHANGED
package/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["src/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,MAAM,EAAE,YAAY,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;;;;;;OAQG;IACH,WAAW,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAErD;;;;;;;;OAQG;IACH,SAAS,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;;;;;;;;OAUG;IACH,SAAS,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAEpD;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IAErE;;;;;;;;;OASG;IACH,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAElE;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEjE;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAE9D;;;;;;;;OAQG;IACH,QAAQ,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEpC;;;;;;;;OAQG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;;;;;;OAQG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;;;;;;;OAQG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["src/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,MAAM,EAAE,YAAY,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;;;;;;OAQG;IACH,WAAW,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAErD;;;;;;;;OAQG;IACH,SAAS,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;;;;;;;;OAUG;IACH,SAAS,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAEpD;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IAErE;;;;;;;;;OASG;IACH,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAElE;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEjE;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAE9D;;;;;;;;OAQG;IACH,QAAQ,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEpC;;;;;;;;OAQG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;;;;;;OAQG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B"}
|
package/type.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["src/type.ts"],"names":[],"mappings":"","sourcesContent":["export interface GlobalAlwatr {\n packages: Record<string, string>;\n}\n\ndeclare global {\n // eslint-disable-next-line no-var\n var Alwatr: GlobalAlwatr;\n}\n\nexport interface AlwatrLogger {\n /**\n * Debug state for current scope base on localStorage `ALWATR_LOG` pattern.\n */\n readonly devMode: boolean;\n\n /**\n * Domain scope defined for this logger.\n */\n readonly domain: string;\n\n /**\n * `console.debug` property change.\n *\n * Example:\n *\n * ```ts\n * logger.logProperty?.('name', 'ali');\n * ```\n */\n logProperty?(property: string, value: unknown): void;\n\n /**\n * `console.debug` module name.\n *\n * Example:\n *\n * ```ts\n * logger.logModule?.('app');\n * ```\n */\n logModule?(name: string): void;\n\n /**\n * `console.debug` function or method calls.\n *\n * Example:\n *\n * ```ts\n * function myMethod () {\n * logger.logMethod?.('myMethod');\n * }\n * ```\n */\n logMethod?(method: string): void;\n\n /**\n * `console.debug` function or method calls with arguments.\n *\n * Example:\n *\n * ```ts\n * function myMethod (a: number, b: number) {\n * logger.logMethodArgs?.('myMethod', {a, b});\n * }\n * ```\n */\n logMethodArgs?(method: string, args: unknown): void;\n\n /**\n * `console.debug` function or method calls with arguments.\n *\n * Example:\n *\n * ```ts\n * function add (a: number, b: number): number {\n * const result = a + b;\n * logger.logMethodFull?.('add', {a, b}, result);\n * return result;\n * }\n * ```\n */\n logMethodFull?(method: string, args: unknown, result: unknown): void;\n\n /**\n * `console.log` an event or expected accident.\n * not warn or error just important information.\n *\n * Example:\n *\n * ```ts\n * logger.incident?.('fetch', 'abort_signal', {url: '/test.json'});\n * ```\n */\n incident?(method: string, code: string, ...args: unknown[]): void;\n\n /**\n * `console.warn` an unexpected accident or error that you handled like warning.\n *\n * Example:\n *\n * ```ts\n * logger.accident('fetch', 'file_not_found', {url: '/test.json'});\n * ```\n */\n accident(method: string, code: string, ...args: unknown[]): void;\n\n /**\n * `console.error` an unexpected error.\n *\n * Example:\n *\n * ```ts\n * try {\n * ...\n * }\n * catch (err) {\n * logger.error('myMethod', 'error_code', err, {a: 1, b: 2});\n * }\n * ```\n */\n error(method: string, code: string, ...args: unknown[]): void;\n\n /**\n * Simple `console.debug` with styled scope.\n *\n * Example:\n *\n * ```ts\n * logger.logOther?.('foo:', 'bar', {a: 1});\n * ```\n */\n logOther?(...args: unknown[]): void;\n\n /**\n * Simple `console.time` with scope.\n *\n * Example:\n *\n * ```ts\n * logger.time?.('foo');\n * ```\n */\n time?(label: string): void;\n\n /**\n * Simple `console.timeEnd` with scope.\n *\n * Example:\n *\n * ```ts\n * logger.timeEnd?.('foo');\n * ```\n */\n timeEnd?(label: string): void;\n\n /**\n * log big banner\n *\n * Example:\n *\n * ```ts\n * logger.banner('Alwatr PWA v2');\n * ```\n */\n banner
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["src/type.ts"],"names":[],"mappings":"","sourcesContent":["export interface GlobalAlwatr {\n packages: Record<string, string>;\n}\n\ndeclare global {\n // eslint-disable-next-line no-var\n var Alwatr: GlobalAlwatr;\n}\n\nexport interface AlwatrLogger {\n /**\n * Debug state for current scope base on localStorage `ALWATR_LOG` pattern.\n */\n readonly devMode: boolean;\n\n /**\n * Domain scope defined for this logger.\n */\n readonly domain: string;\n\n /**\n * `console.debug` property change.\n *\n * Example:\n *\n * ```ts\n * logger.logProperty?.('name', 'ali');\n * ```\n */\n logProperty?(property: string, value: unknown): void;\n\n /**\n * `console.debug` module name.\n *\n * Example:\n *\n * ```ts\n * logger.logModule?.('app');\n * ```\n */\n logModule?(name: string): void;\n\n /**\n * `console.debug` function or method calls.\n *\n * Example:\n *\n * ```ts\n * function myMethod () {\n * logger.logMethod?.('myMethod');\n * }\n * ```\n */\n logMethod?(method: string): void;\n\n /**\n * `console.debug` function or method calls with arguments.\n *\n * Example:\n *\n * ```ts\n * function myMethod (a: number, b: number) {\n * logger.logMethodArgs?.('myMethod', {a, b});\n * }\n * ```\n */\n logMethodArgs?(method: string, args: unknown): void;\n\n /**\n * `console.debug` function or method calls with arguments.\n *\n * Example:\n *\n * ```ts\n * function add (a: number, b: number): number {\n * const result = a + b;\n * logger.logMethodFull?.('add', {a, b}, result);\n * return result;\n * }\n * ```\n */\n logMethodFull?(method: string, args: unknown, result: unknown): void;\n\n /**\n * `console.log` an event or expected accident.\n * not warn or error just important information.\n *\n * Example:\n *\n * ```ts\n * logger.incident?.('fetch', 'abort_signal', {url: '/test.json'});\n * ```\n */\n incident?(method: string, code: string, ...args: unknown[]): void;\n\n /**\n * `console.warn` an unexpected accident or error that you handled like warning.\n *\n * Example:\n *\n * ```ts\n * logger.accident('fetch', 'file_not_found', {url: '/test.json'});\n * ```\n */\n accident(method: string, code: string, ...args: unknown[]): void;\n\n /**\n * `console.error` an unexpected error.\n *\n * Example:\n *\n * ```ts\n * try {\n * ...\n * }\n * catch (err) {\n * logger.error('myMethod', 'error_code', err, {a: 1, b: 2});\n * }\n * ```\n */\n error(method: string, code: string, ...args: unknown[]): void;\n\n /**\n * Simple `console.debug` with styled scope.\n *\n * Example:\n *\n * ```ts\n * logger.logOther?.('foo:', 'bar', {a: 1});\n * ```\n */\n logOther?(...args: unknown[]): void;\n\n /**\n * Simple `console.time` with scope.\n *\n * Example:\n *\n * ```ts\n * logger.time?.('foo');\n * ```\n */\n time?(label: string): void;\n\n /**\n * Simple `console.timeEnd` with scope.\n *\n * Example:\n *\n * ```ts\n * logger.timeEnd?.('foo');\n * ```\n */\n timeEnd?(label: string): void;\n\n /**\n * log big banner\n *\n * Example:\n *\n * ```ts\n * logger.banner('Alwatr PWA v2');\n * ```\n */\n banner(message: string): void;\n}\n"]}
|