scribelog 1.0.3 → 1.0.4
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/README.md +1 -1
- package/package.json +69 -69
package/README.md
CHANGED
|
@@ -111,7 +111,7 @@ Create and configure your logger using `createLogger(options?: LoggerOptions)`.
|
|
|
111
111
|
import { createLogger, format, transports } from 'scribelog';
|
|
112
112
|
|
|
113
113
|
const prodLogger = createLogger({
|
|
114
|
-
level: 'info', // Read level from environment or default to info
|
|
114
|
+
level: process.env.LOG_LEVEL || 'info', // Read level from environment or default to info
|
|
115
115
|
format: format.defaultJsonFormat, // Use predefined JSON format
|
|
116
116
|
transports: [
|
|
117
117
|
new transports.Console({
|
package/package.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "scribelog",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "An advanced, configurable logger for Node.js applications.",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"README.md",
|
|
10
|
-
"LICENSE"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
15
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
16
|
-
"test": "jest",
|
|
17
|
-
"clean": "rimraf dist",
|
|
18
|
-
"prepublishOnly": "npm run clean && npm test && npm run lint && npm run build"
|
|
19
|
-
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"log",
|
|
22
|
-
"logs",
|
|
23
|
-
"logger",
|
|
24
|
-
"logging",
|
|
25
|
-
"typescript",
|
|
26
|
-
"node",
|
|
27
|
-
"nodejs",
|
|
28
|
-
"console",
|
|
29
|
-
"format",
|
|
30
|
-
"error",
|
|
31
|
-
"exception",
|
|
32
|
-
"scribe",
|
|
33
|
-
"scribelog"
|
|
34
|
-
],
|
|
35
|
-
"publishConfig": {
|
|
36
|
-
"access": "public"
|
|
37
|
-
},
|
|
38
|
-
"author": "tolongames",
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@types/jest": "^29.5.12",
|
|
42
|
-
"@types/node": "^20.11.24",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
44
|
-
"@typescript-eslint/parser": "^7.1.1",
|
|
45
|
-
"eslint": "^8.57.0",
|
|
46
|
-
"eslint-config-prettier": "^9.1.0",
|
|
47
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
48
|
-
"jest": "^29.7.0",
|
|
49
|
-
"prettier": "^3.2.5",
|
|
50
|
-
"rimraf": "^6.0.1",
|
|
51
|
-
"ts-jest": "^29.1.2",
|
|
52
|
-
"typescript": "^5.3.3"
|
|
53
|
-
},
|
|
54
|
-
"repository": {
|
|
55
|
-
"type": "git",
|
|
56
|
-
"url": "git+https://github.com/tolongames/scribelog.git"
|
|
57
|
-
},
|
|
58
|
-
"bugs": {
|
|
59
|
-
"url": "https://github.com/tolongames/scribelog/issues"
|
|
60
|
-
},
|
|
61
|
-
"homepage": "https://github.com/tolongames/scribelog#readme",
|
|
62
|
-
"engines": {
|
|
63
|
-
"node": ">=16.0.0"
|
|
64
|
-
},
|
|
65
|
-
"dependencies": {
|
|
66
|
-
"chalk": "^4.1.2",
|
|
67
|
-
"date-fns": "^2.30.0"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "scribelog",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "An advanced, configurable logger for Node.js applications.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md",
|
|
10
|
+
"LICENSE"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
15
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
16
|
+
"test": "jest",
|
|
17
|
+
"clean": "rimraf dist",
|
|
18
|
+
"prepublishOnly": "npm run clean && npm test && npm run lint && npm run build"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"log",
|
|
22
|
+
"logs",
|
|
23
|
+
"logger",
|
|
24
|
+
"logging",
|
|
25
|
+
"typescript",
|
|
26
|
+
"node",
|
|
27
|
+
"nodejs",
|
|
28
|
+
"console",
|
|
29
|
+
"format",
|
|
30
|
+
"error",
|
|
31
|
+
"exception",
|
|
32
|
+
"scribe",
|
|
33
|
+
"scribelog"
|
|
34
|
+
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"author": "tolongames",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/jest": "^29.5.12",
|
|
42
|
+
"@types/node": "^20.11.24",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
44
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
45
|
+
"eslint": "^8.57.0",
|
|
46
|
+
"eslint-config-prettier": "^9.1.0",
|
|
47
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
48
|
+
"jest": "^29.7.0",
|
|
49
|
+
"prettier": "^3.2.5",
|
|
50
|
+
"rimraf": "^6.0.1",
|
|
51
|
+
"ts-jest": "^29.1.2",
|
|
52
|
+
"typescript": "^5.3.3"
|
|
53
|
+
},
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "git+https://github.com/tolongames/scribelog.git"
|
|
57
|
+
},
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "https://github.com/tolongames/scribelog/issues"
|
|
60
|
+
},
|
|
61
|
+
"homepage": "https://github.com/tolongames/scribelog#readme",
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=16.0.0"
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"chalk": "^4.1.2",
|
|
67
|
+
"date-fns": "^2.30.0"
|
|
68
|
+
}
|
|
69
|
+
}
|