nightingale-levels 11.7.1 → 12.1.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/.eslintrc.json +1 -1
- package/CHANGELOG.md +40 -0
- package/README.md +1 -1
- package/dist/index-browser.cjs.js +1 -1
- package/dist/index-browser.es.js +1 -2
- package/dist/index-browser.es.js.map +1 -1
- package/dist/index-browsermodern.es.js +1 -2
- package/dist/index-browsermodern.es.js.map +1 -1
- package/dist/{index-node12.cjs.js → index-node14.cjs.js} +2 -2
- package/dist/{index-node12.cjs.js.map → index-node14.cjs.js.map} +1 -1
- package/dist/{index-node12.mjs → index-node14.mjs} +2 -3
- package/dist/{index-node12.mjs.map → index-node14.mjs.map} +1 -1
- package/package.json +16 -40
- package/rollup.config.mjs +3 -0
- package/src/.eslintrc.json +18 -1
- package/dist/index-browser-dev.cjs.js +0 -44
- package/dist/index-browser-dev.cjs.js.map +0 -1
- package/dist/index-browser-dev.es.js +0 -41
- package/dist/index-browser-dev.es.js.map +0 -1
- package/dist/index-browsermodern-dev.es.js +0 -41
- package/dist/index-browsermodern-dev.es.js.map +0 -1
- package/dist/index-node12-dev.cjs.js +0 -44
- package/dist/index-node12-dev.cjs.js.map +0 -1
- package/dist/index-node12-dev.mjs +0 -41
- package/dist/index-node12-dev.mjs.map +0 -1
- package/index.js +0 -6
package/.eslintrc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,46 @@
|
|
|
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
|
+
# [12.1.0](https://github.com/christophehurpeau/nightingale/compare/v12.0.1...v12.1.0) (2021-12-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package nightingale-levels
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [12.0.1](https://github.com/christophehurpeau/nightingale/compare/v12.0.0...v12.0.1) (2021-12-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package nightingale-levels
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [12.0.0](https://github.com/christophehurpeau/nightingale/compare/v11.9.0...v12.0.0) (2021-12-11)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Build System
|
|
26
|
+
|
|
27
|
+
* node 14 and remove dev builds ([432ecd1](https://github.com/christophehurpeau/nightingale/commit/432ecd1faafd0419f57dea00fce560e4cccc207f))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### BREAKING CHANGES
|
|
31
|
+
|
|
32
|
+
* requires node 14
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package nightingale-levels
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
6
46
|
## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
|
|
7
47
|
|
|
8
48
|
|
package/README.md
CHANGED
package/dist/index-browser.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,cAAeA,KAAf
|
|
1
|
+
{"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,cAAeA,KAAf;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,gBAAeA,KAAf
|
|
1
|
+
{"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,gBAAeA,KAAf;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-node14.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,kBAAAA;;AA6BZ,cAAeA,aAAf;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-node14.mjs","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,gBAAeA,KAAf;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nightingale-levels",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "Nightingale levels",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logger"
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
"directory": "packages/nightingale-levels"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/christophehurpeau/nightingale",
|
|
16
|
+
"type": "commonjs",
|
|
16
17
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
18
|
+
"node": "^14.13.1 || >=16.0.0"
|
|
18
19
|
},
|
|
19
20
|
"browserslist": [
|
|
20
21
|
"defaults",
|
|
@@ -23,48 +24,35 @@
|
|
|
23
24
|
"not safari < 10",
|
|
24
25
|
"not ios_saf < 10"
|
|
25
26
|
],
|
|
26
|
-
"main": "./index.js",
|
|
27
|
+
"main": "./dist/index-node14.cjs.js",
|
|
27
28
|
"types": "./dist/index.d.ts",
|
|
28
29
|
"module": "./dist/index-browser.es.js",
|
|
29
30
|
"browser": "./dist/index-browser.es.js",
|
|
30
31
|
"exports": {
|
|
32
|
+
"./package.json": "./package.json",
|
|
31
33
|
".": {
|
|
32
34
|
"node": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"require": "./dist/index-node12-dev.cjs.js"
|
|
36
|
-
},
|
|
37
|
-
"import": "./dist/index-node12.mjs",
|
|
38
|
-
"require": "./dist/index-node12.cjs.js"
|
|
35
|
+
"import": "./dist/index-node14.mjs",
|
|
36
|
+
"require": "./dist/index-node14.cjs.js"
|
|
39
37
|
},
|
|
40
38
|
"browser": {
|
|
41
39
|
"browser:modern": {
|
|
42
|
-
"development": {
|
|
43
|
-
"import": "./dist/index-browsermodern-dev.es.js"
|
|
44
|
-
},
|
|
45
40
|
"import": "./dist/index-browsermodern.es.js"
|
|
46
41
|
},
|
|
47
|
-
"development": {
|
|
48
|
-
"import": "./dist/index-browser-dev.es.js",
|
|
49
|
-
"require": "./dist/index-browser-dev.cjs.js"
|
|
50
|
-
},
|
|
51
42
|
"import": "./dist/index-browser.es.js",
|
|
52
43
|
"require": "./dist/index-browser.cjs.js"
|
|
53
44
|
}
|
|
54
45
|
}
|
|
55
46
|
},
|
|
56
|
-
"module:node": "./dist/index-
|
|
57
|
-
"module:node-dev": "./dist/index-node12-dev.mjs",
|
|
58
|
-
"module:browser": "./dist/index-browser.es.js",
|
|
59
|
-
"module:browser-dev": "./dist/index-browser-dev.es.js",
|
|
47
|
+
"module:node": "./dist/index-node14.mjs",
|
|
60
48
|
"module:modern-browsers": "./dist/index-browsermodern.es.js",
|
|
61
|
-
"module:modern-browsers-dev": "./dist/index-browsermodern-dev.es.js",
|
|
62
49
|
"sideEffects": false,
|
|
63
50
|
"scripts": {
|
|
64
51
|
"build": "pob-build && yarn run build:definitions",
|
|
65
52
|
"build:definitions": "tsc -p tsconfig.build.json",
|
|
53
|
+
"clean": "rm -Rf dist",
|
|
66
54
|
"lint": "yarn run lint:eslint",
|
|
67
|
-
"lint:eslint": "
|
|
55
|
+
"lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-levels",
|
|
68
56
|
"watch": "pob-watch"
|
|
69
57
|
},
|
|
70
58
|
"prettier": {
|
|
@@ -76,7 +64,7 @@
|
|
|
76
64
|
"babelEnvs": [
|
|
77
65
|
{
|
|
78
66
|
"target": "node",
|
|
79
|
-
"version": "
|
|
67
|
+
"version": "14",
|
|
80
68
|
"formats": [
|
|
81
69
|
"cjs",
|
|
82
70
|
"es"
|
|
@@ -102,23 +90,11 @@
|
|
|
102
90
|
]
|
|
103
91
|
},
|
|
104
92
|
"devDependencies": {
|
|
105
|
-
"@babel/core": "7.
|
|
106
|
-
"@babel/preset-env": "7.
|
|
107
|
-
"@pob/eslint-config": "43.2.0",
|
|
108
|
-
"@pob/eslint-config-node": "43.2.0",
|
|
109
|
-
"@pob/eslint-config-typescript": "43.2.0",
|
|
110
|
-
"@typescript-eslint/eslint-plugin": "4.28.1",
|
|
111
|
-
"@typescript-eslint/parser": "4.28.1",
|
|
112
|
-
"babel-preset-latest-node": "5.5.1",
|
|
93
|
+
"@babel/core": "7.16.0",
|
|
94
|
+
"@babel/preset-env": "7.16.4",
|
|
113
95
|
"babel-preset-modern-browsers": "15.0.2",
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"eslint-plugin-import": "2.23.4",
|
|
117
|
-
"eslint-plugin-node": "11.1.0",
|
|
118
|
-
"eslint-plugin-unicorn": "29.0.0",
|
|
119
|
-
"pob-babel": "27.0.3",
|
|
120
|
-
"rollup": "2.52.3",
|
|
121
|
-
"typescript": "4.3.4"
|
|
96
|
+
"pob-babel": "29.4.2",
|
|
97
|
+
"typescript": "4.5.4"
|
|
122
98
|
},
|
|
123
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "f2f75856d32f444f0ed08b5ab903537cb1f4c38f"
|
|
124
100
|
}
|
package/src/.eslintrc.json
CHANGED
|
@@ -6,5 +6,22 @@
|
|
|
6
6
|
},
|
|
7
7
|
"plugins": ["@typescript-eslint"],
|
|
8
8
|
"extends": ["@pob/eslint-config-typescript"],
|
|
9
|
-
"ignorePatterns": ["*.d.ts"]
|
|
9
|
+
"ignorePatterns": ["*.d.ts"],
|
|
10
|
+
"overrides": [
|
|
11
|
+
{
|
|
12
|
+
"files": ["**/*.test.ts", "__tests__/**/*.ts"],
|
|
13
|
+
"extends": ["@pob/eslint-config-typescript/test"],
|
|
14
|
+
"env": {
|
|
15
|
+
"jest": true
|
|
16
|
+
},
|
|
17
|
+
"rules": {
|
|
18
|
+
"import/no-extraneous-dependencies": [
|
|
19
|
+
"error",
|
|
20
|
+
{
|
|
21
|
+
"devDependencies": true
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
10
27
|
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @enum {number} List of Levels
|
|
7
|
-
*
|
|
8
|
-
* <ul>
|
|
9
|
-
* <li>ALL: Log everything. Not a level.</li>
|
|
10
|
-
* <li>TRACE: Trace information</li>
|
|
11
|
-
* <li>DEBUG: Detailed debug information</li>
|
|
12
|
-
* <li>INFO: Normal but significant events</li>
|
|
13
|
-
* <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>
|
|
14
|
-
* <li>WARNING: Alias for WARN</li>
|
|
15
|
-
* <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>
|
|
16
|
-
* <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>
|
|
17
|
-
* <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc
|
|
18
|
-
* This should trigger the SMS alerts and wake you up</li>
|
|
19
|
-
* <li>ALERT: Alias for FATAL</li>
|
|
20
|
-
* <li>EMERGENCY: Emergency: system is unusable</li>
|
|
21
|
-
* </ul>
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
exports.Level = void 0;
|
|
25
|
-
|
|
26
|
-
(function (Level) {
|
|
27
|
-
Level[Level["ALL"] = 0] = "ALL";
|
|
28
|
-
Level[Level["TRACE"] = 10] = "TRACE";
|
|
29
|
-
Level[Level["DEBUG"] = 100] = "DEBUG";
|
|
30
|
-
Level[Level["INFO"] = 200] = "INFO";
|
|
31
|
-
Level[Level["NOTICE"] = 250] = "NOTICE";
|
|
32
|
-
Level[Level["WARN"] = 300] = "WARN";
|
|
33
|
-
Level[Level["WARNING"] = 300] = "WARNING";
|
|
34
|
-
Level[Level["ERROR"] = 400] = "ERROR";
|
|
35
|
-
Level[Level["CRITICAL"] = 500] = "CRITICAL";
|
|
36
|
-
Level[Level["FATAL"] = 550] = "FATAL";
|
|
37
|
-
Level[Level["ALERT"] = 550] = "ALERT";
|
|
38
|
-
Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
|
|
39
|
-
})(exports.Level || (exports.Level = {}));
|
|
40
|
-
|
|
41
|
-
var Level = exports.Level;
|
|
42
|
-
|
|
43
|
-
exports.default = Level;
|
|
44
|
-
//# sourceMappingURL=index-browser-dev.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-browser-dev.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,kBAAAA;;AA6BZ,YAAeA,aAAf;;;;"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @enum {number} List of Levels
|
|
3
|
-
*
|
|
4
|
-
* <ul>
|
|
5
|
-
* <li>ALL: Log everything. Not a level.</li>
|
|
6
|
-
* <li>TRACE: Trace information</li>
|
|
7
|
-
* <li>DEBUG: Detailed debug information</li>
|
|
8
|
-
* <li>INFO: Normal but significant events</li>
|
|
9
|
-
* <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>
|
|
10
|
-
* <li>WARNING: Alias for WARN</li>
|
|
11
|
-
* <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>
|
|
12
|
-
* <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>
|
|
13
|
-
* <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc
|
|
14
|
-
* This should trigger the SMS alerts and wake you up</li>
|
|
15
|
-
* <li>ALERT: Alias for FATAL</li>
|
|
16
|
-
* <li>EMERGENCY: Emergency: system is unusable</li>
|
|
17
|
-
* </ul>
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
var Level;
|
|
21
|
-
|
|
22
|
-
(function (Level) {
|
|
23
|
-
Level[Level["ALL"] = 0] = "ALL";
|
|
24
|
-
Level[Level["TRACE"] = 10] = "TRACE";
|
|
25
|
-
Level[Level["DEBUG"] = 100] = "DEBUG";
|
|
26
|
-
Level[Level["INFO"] = 200] = "INFO";
|
|
27
|
-
Level[Level["NOTICE"] = 250] = "NOTICE";
|
|
28
|
-
Level[Level["WARN"] = 300] = "WARN";
|
|
29
|
-
Level[Level["WARNING"] = 300] = "WARNING";
|
|
30
|
-
Level[Level["ERROR"] = 400] = "ERROR";
|
|
31
|
-
Level[Level["CRITICAL"] = 500] = "CRITICAL";
|
|
32
|
-
Level[Level["FATAL"] = 550] = "FATAL";
|
|
33
|
-
Level[Level["ALERT"] = 550] = "ALERT";
|
|
34
|
-
Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
|
|
35
|
-
})(Level || (Level = {}));
|
|
36
|
-
|
|
37
|
-
var Level$1 = Level;
|
|
38
|
-
|
|
39
|
-
export default Level$1;
|
|
40
|
-
export { Level };
|
|
41
|
-
//# sourceMappingURL=index-browser-dev.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-browser-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,cAAeA,KAAf;;;;;"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @enum {number} List of Levels
|
|
3
|
-
*
|
|
4
|
-
* <ul>
|
|
5
|
-
* <li>ALL: Log everything. Not a level.</li>
|
|
6
|
-
* <li>TRACE: Trace information</li>
|
|
7
|
-
* <li>DEBUG: Detailed debug information</li>
|
|
8
|
-
* <li>INFO: Normal but significant events</li>
|
|
9
|
-
* <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>
|
|
10
|
-
* <li>WARNING: Alias for WARN</li>
|
|
11
|
-
* <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>
|
|
12
|
-
* <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>
|
|
13
|
-
* <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc
|
|
14
|
-
* This should trigger the SMS alerts and wake you up</li>
|
|
15
|
-
* <li>ALERT: Alias for FATAL</li>
|
|
16
|
-
* <li>EMERGENCY: Emergency: system is unusable</li>
|
|
17
|
-
* </ul>
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
let Level;
|
|
21
|
-
|
|
22
|
-
(function (Level) {
|
|
23
|
-
Level[Level["ALL"] = 0] = "ALL";
|
|
24
|
-
Level[Level["TRACE"] = 10] = "TRACE";
|
|
25
|
-
Level[Level["DEBUG"] = 100] = "DEBUG";
|
|
26
|
-
Level[Level["INFO"] = 200] = "INFO";
|
|
27
|
-
Level[Level["NOTICE"] = 250] = "NOTICE";
|
|
28
|
-
Level[Level["WARN"] = 300] = "WARN";
|
|
29
|
-
Level[Level["WARNING"] = 300] = "WARNING";
|
|
30
|
-
Level[Level["ERROR"] = 400] = "ERROR";
|
|
31
|
-
Level[Level["CRITICAL"] = 500] = "CRITICAL";
|
|
32
|
-
Level[Level["FATAL"] = 550] = "FATAL";
|
|
33
|
-
Level[Level["ALERT"] = 550] = "ALERT";
|
|
34
|
-
Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
|
|
35
|
-
})(Level || (Level = {}));
|
|
36
|
-
|
|
37
|
-
const Level$1 = Level;
|
|
38
|
-
|
|
39
|
-
export default Level$1;
|
|
40
|
-
export { Level };
|
|
41
|
-
//# sourceMappingURL=index-browsermodern-dev.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-browsermodern-dev.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,gBAAeA,KAAf;;;;;"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @enum {number} List of Levels
|
|
7
|
-
*
|
|
8
|
-
* <ul>
|
|
9
|
-
* <li>ALL: Log everything. Not a level.</li>
|
|
10
|
-
* <li>TRACE: Trace information</li>
|
|
11
|
-
* <li>DEBUG: Detailed debug information</li>
|
|
12
|
-
* <li>INFO: Normal but significant events</li>
|
|
13
|
-
* <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>
|
|
14
|
-
* <li>WARNING: Alias for WARN</li>
|
|
15
|
-
* <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>
|
|
16
|
-
* <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>
|
|
17
|
-
* <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc
|
|
18
|
-
* This should trigger the SMS alerts and wake you up</li>
|
|
19
|
-
* <li>ALERT: Alias for FATAL</li>
|
|
20
|
-
* <li>EMERGENCY: Emergency: system is unusable</li>
|
|
21
|
-
* </ul>
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
exports.Level = void 0;
|
|
25
|
-
|
|
26
|
-
(function (Level) {
|
|
27
|
-
Level[Level["ALL"] = 0] = "ALL";
|
|
28
|
-
Level[Level["TRACE"] = 10] = "TRACE";
|
|
29
|
-
Level[Level["DEBUG"] = 100] = "DEBUG";
|
|
30
|
-
Level[Level["INFO"] = 200] = "INFO";
|
|
31
|
-
Level[Level["NOTICE"] = 250] = "NOTICE";
|
|
32
|
-
Level[Level["WARN"] = 300] = "WARN";
|
|
33
|
-
Level[Level["WARNING"] = 300] = "WARNING";
|
|
34
|
-
Level[Level["ERROR"] = 400] = "ERROR";
|
|
35
|
-
Level[Level["CRITICAL"] = 500] = "CRITICAL";
|
|
36
|
-
Level[Level["FATAL"] = 550] = "FATAL";
|
|
37
|
-
Level[Level["ALERT"] = 550] = "ALERT";
|
|
38
|
-
Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
|
|
39
|
-
})(exports.Level || (exports.Level = {}));
|
|
40
|
-
|
|
41
|
-
const Level = exports.Level;
|
|
42
|
-
|
|
43
|
-
exports.default = Level;
|
|
44
|
-
//# sourceMappingURL=index-node12-dev.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-node12-dev.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,kBAAAA;;AA6BZ,cAAeA,aAAf;;;;"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @enum {number} List of Levels
|
|
3
|
-
*
|
|
4
|
-
* <ul>
|
|
5
|
-
* <li>ALL: Log everything. Not a level.</li>
|
|
6
|
-
* <li>TRACE: Trace information</li>
|
|
7
|
-
* <li>DEBUG: Detailed debug information</li>
|
|
8
|
-
* <li>INFO: Normal but significant events</li>
|
|
9
|
-
* <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>
|
|
10
|
-
* <li>WARNING: Alias for WARN</li>
|
|
11
|
-
* <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>
|
|
12
|
-
* <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>
|
|
13
|
-
* <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc
|
|
14
|
-
* This should trigger the SMS alerts and wake you up</li>
|
|
15
|
-
* <li>ALERT: Alias for FATAL</li>
|
|
16
|
-
* <li>EMERGENCY: Emergency: system is unusable</li>
|
|
17
|
-
* </ul>
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
let Level;
|
|
21
|
-
|
|
22
|
-
(function (Level) {
|
|
23
|
-
Level[Level["ALL"] = 0] = "ALL";
|
|
24
|
-
Level[Level["TRACE"] = 10] = "TRACE";
|
|
25
|
-
Level[Level["DEBUG"] = 100] = "DEBUG";
|
|
26
|
-
Level[Level["INFO"] = 200] = "INFO";
|
|
27
|
-
Level[Level["NOTICE"] = 250] = "NOTICE";
|
|
28
|
-
Level[Level["WARN"] = 300] = "WARN";
|
|
29
|
-
Level[Level["WARNING"] = 300] = "WARNING";
|
|
30
|
-
Level[Level["ERROR"] = 400] = "ERROR";
|
|
31
|
-
Level[Level["CRITICAL"] = 500] = "CRITICAL";
|
|
32
|
-
Level[Level["FATAL"] = 550] = "FATAL";
|
|
33
|
-
Level[Level["ALERT"] = 550] = "ALERT";
|
|
34
|
-
Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
|
|
35
|
-
})(Level || (Level = {}));
|
|
36
|
-
|
|
37
|
-
const Level$1 = Level;
|
|
38
|
-
|
|
39
|
-
export default Level$1;
|
|
40
|
-
export { Level };
|
|
41
|
-
//# sourceMappingURL=index-node12-dev.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-node12-dev.mjs","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,gBAAeA,KAAf;;;;;"}
|