@bsb/observable-logging-file 9.1.1 → 9.1.3
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.
|
@@ -57,7 +57,6 @@ export const FileLoggingConfigSchema = av.object({
|
|
|
57
57
|
export const Config = createConfigSchema({
|
|
58
58
|
name: 'observable-logging-file',
|
|
59
59
|
description: 'File-based observable logging with rotation and retention controls',
|
|
60
|
-
version: '9.0.0',
|
|
61
60
|
image: './observable-logging-file.png',
|
|
62
61
|
tags: ['logging', 'file', 'rotation', 'observability'],
|
|
63
62
|
documentation: ['./docs/plugin.md'],
|
|
@@ -1,7 +1,149 @@
|
|
|
1
1
|
{
|
|
2
2
|
"pluginName": "observable-logging-file",
|
|
3
|
-
"version": "9.0.0",
|
|
4
3
|
"events": {},
|
|
4
|
+
"version": "9.1.3",
|
|
5
|
+
"configSchema": {
|
|
6
|
+
"anyvaliVersion": "1.0",
|
|
7
|
+
"schemaVersion": "1",
|
|
8
|
+
"root": {
|
|
9
|
+
"kind": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"directory": {
|
|
12
|
+
"kind": "optional",
|
|
13
|
+
"inner": {
|
|
14
|
+
"kind": "string"
|
|
15
|
+
},
|
|
16
|
+
"default": "./logs"
|
|
17
|
+
},
|
|
18
|
+
"filename": {
|
|
19
|
+
"kind": "optional",
|
|
20
|
+
"inner": {
|
|
21
|
+
"kind": "string"
|
|
22
|
+
},
|
|
23
|
+
"default": "application-%DATE%.log"
|
|
24
|
+
},
|
|
25
|
+
"dateFormat": {
|
|
26
|
+
"kind": "optional",
|
|
27
|
+
"inner": {
|
|
28
|
+
"kind": "string"
|
|
29
|
+
},
|
|
30
|
+
"default": "YYYY-MM-DD"
|
|
31
|
+
},
|
|
32
|
+
"rotation": {
|
|
33
|
+
"kind": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"maxSize": {
|
|
36
|
+
"kind": "optional",
|
|
37
|
+
"inner": {
|
|
38
|
+
"kind": "string"
|
|
39
|
+
},
|
|
40
|
+
"default": "10M"
|
|
41
|
+
},
|
|
42
|
+
"maxFiles": {
|
|
43
|
+
"kind": "optional",
|
|
44
|
+
"inner": {
|
|
45
|
+
"kind": "int32",
|
|
46
|
+
"min": 0
|
|
47
|
+
},
|
|
48
|
+
"default": 7
|
|
49
|
+
},
|
|
50
|
+
"interval": {
|
|
51
|
+
"kind": "optional",
|
|
52
|
+
"inner": {
|
|
53
|
+
"kind": "enum",
|
|
54
|
+
"values": [
|
|
55
|
+
"daily",
|
|
56
|
+
"hourly",
|
|
57
|
+
"none"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"default": "daily"
|
|
61
|
+
},
|
|
62
|
+
"compress": {
|
|
63
|
+
"kind": "optional",
|
|
64
|
+
"inner": {
|
|
65
|
+
"kind": "bool"
|
|
66
|
+
},
|
|
67
|
+
"default": true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [],
|
|
71
|
+
"unknownKeys": "strip"
|
|
72
|
+
},
|
|
73
|
+
"levels": {
|
|
74
|
+
"kind": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"debug": {
|
|
77
|
+
"kind": "optional",
|
|
78
|
+
"inner": {
|
|
79
|
+
"kind": "bool"
|
|
80
|
+
},
|
|
81
|
+
"default": true
|
|
82
|
+
},
|
|
83
|
+
"info": {
|
|
84
|
+
"kind": "optional",
|
|
85
|
+
"inner": {
|
|
86
|
+
"kind": "bool"
|
|
87
|
+
},
|
|
88
|
+
"default": true
|
|
89
|
+
},
|
|
90
|
+
"warn": {
|
|
91
|
+
"kind": "optional",
|
|
92
|
+
"inner": {
|
|
93
|
+
"kind": "bool"
|
|
94
|
+
},
|
|
95
|
+
"default": true
|
|
96
|
+
},
|
|
97
|
+
"error": {
|
|
98
|
+
"kind": "optional",
|
|
99
|
+
"inner": {
|
|
100
|
+
"kind": "bool"
|
|
101
|
+
},
|
|
102
|
+
"default": true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": [],
|
|
106
|
+
"unknownKeys": "strip"
|
|
107
|
+
},
|
|
108
|
+
"format": {
|
|
109
|
+
"kind": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"timestamp": {
|
|
112
|
+
"kind": "optional",
|
|
113
|
+
"inner": {
|
|
114
|
+
"kind": "bool"
|
|
115
|
+
},
|
|
116
|
+
"default": true
|
|
117
|
+
},
|
|
118
|
+
"traceInfo": {
|
|
119
|
+
"kind": "optional",
|
|
120
|
+
"inner": {
|
|
121
|
+
"kind": "bool"
|
|
122
|
+
},
|
|
123
|
+
"default": true
|
|
124
|
+
},
|
|
125
|
+
"prettyPrint": {
|
|
126
|
+
"kind": "optional",
|
|
127
|
+
"inner": {
|
|
128
|
+
"kind": "bool"
|
|
129
|
+
},
|
|
130
|
+
"default": false
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": [],
|
|
134
|
+
"unknownKeys": "strip"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": [
|
|
138
|
+
"rotation",
|
|
139
|
+
"levels",
|
|
140
|
+
"format"
|
|
141
|
+
],
|
|
142
|
+
"unknownKeys": "strip"
|
|
143
|
+
},
|
|
144
|
+
"definitions": {},
|
|
145
|
+
"extensions": {}
|
|
146
|
+
},
|
|
5
147
|
"pluginType": "observable",
|
|
6
148
|
"capabilities": {
|
|
7
149
|
"logging": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "observable-logging-file",
|
|
3
3
|
"name": "observable-logging-file",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.1.3",
|
|
5
5
|
"description": "File-based observable logging with rotation and retention controls",
|
|
6
6
|
"category": "observable",
|
|
7
7
|
"tags": [
|
|
@@ -14,5 +14,153 @@
|
|
|
14
14
|
"./docs/plugin.md"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": [],
|
|
17
|
-
"
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "BetterCorp (PTY) Ltd",
|
|
19
|
+
"email": "ninja@bettercorp.dev",
|
|
20
|
+
"url": "https://bettercorp.dev/"
|
|
21
|
+
},
|
|
22
|
+
"license": "(AGPL-3.0-only OR Commercial)",
|
|
23
|
+
"image": "./observable-logging-file.png",
|
|
24
|
+
"configSchema": {
|
|
25
|
+
"anyvaliVersion": "1.0",
|
|
26
|
+
"schemaVersion": "1",
|
|
27
|
+
"root": {
|
|
28
|
+
"kind": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"directory": {
|
|
31
|
+
"kind": "optional",
|
|
32
|
+
"inner": {
|
|
33
|
+
"kind": "string"
|
|
34
|
+
},
|
|
35
|
+
"default": "./logs"
|
|
36
|
+
},
|
|
37
|
+
"filename": {
|
|
38
|
+
"kind": "optional",
|
|
39
|
+
"inner": {
|
|
40
|
+
"kind": "string"
|
|
41
|
+
},
|
|
42
|
+
"default": "application-%DATE%.log"
|
|
43
|
+
},
|
|
44
|
+
"dateFormat": {
|
|
45
|
+
"kind": "optional",
|
|
46
|
+
"inner": {
|
|
47
|
+
"kind": "string"
|
|
48
|
+
},
|
|
49
|
+
"default": "YYYY-MM-DD"
|
|
50
|
+
},
|
|
51
|
+
"rotation": {
|
|
52
|
+
"kind": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"maxSize": {
|
|
55
|
+
"kind": "optional",
|
|
56
|
+
"inner": {
|
|
57
|
+
"kind": "string"
|
|
58
|
+
},
|
|
59
|
+
"default": "10M"
|
|
60
|
+
},
|
|
61
|
+
"maxFiles": {
|
|
62
|
+
"kind": "optional",
|
|
63
|
+
"inner": {
|
|
64
|
+
"kind": "int32",
|
|
65
|
+
"min": 0
|
|
66
|
+
},
|
|
67
|
+
"default": 7
|
|
68
|
+
},
|
|
69
|
+
"interval": {
|
|
70
|
+
"kind": "optional",
|
|
71
|
+
"inner": {
|
|
72
|
+
"kind": "enum",
|
|
73
|
+
"values": [
|
|
74
|
+
"daily",
|
|
75
|
+
"hourly",
|
|
76
|
+
"none"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"default": "daily"
|
|
80
|
+
},
|
|
81
|
+
"compress": {
|
|
82
|
+
"kind": "optional",
|
|
83
|
+
"inner": {
|
|
84
|
+
"kind": "bool"
|
|
85
|
+
},
|
|
86
|
+
"default": true
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [],
|
|
90
|
+
"unknownKeys": "strip"
|
|
91
|
+
},
|
|
92
|
+
"levels": {
|
|
93
|
+
"kind": "object",
|
|
94
|
+
"properties": {
|
|
95
|
+
"debug": {
|
|
96
|
+
"kind": "optional",
|
|
97
|
+
"inner": {
|
|
98
|
+
"kind": "bool"
|
|
99
|
+
},
|
|
100
|
+
"default": true
|
|
101
|
+
},
|
|
102
|
+
"info": {
|
|
103
|
+
"kind": "optional",
|
|
104
|
+
"inner": {
|
|
105
|
+
"kind": "bool"
|
|
106
|
+
},
|
|
107
|
+
"default": true
|
|
108
|
+
},
|
|
109
|
+
"warn": {
|
|
110
|
+
"kind": "optional",
|
|
111
|
+
"inner": {
|
|
112
|
+
"kind": "bool"
|
|
113
|
+
},
|
|
114
|
+
"default": true
|
|
115
|
+
},
|
|
116
|
+
"error": {
|
|
117
|
+
"kind": "optional",
|
|
118
|
+
"inner": {
|
|
119
|
+
"kind": "bool"
|
|
120
|
+
},
|
|
121
|
+
"default": true
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [],
|
|
125
|
+
"unknownKeys": "strip"
|
|
126
|
+
},
|
|
127
|
+
"format": {
|
|
128
|
+
"kind": "object",
|
|
129
|
+
"properties": {
|
|
130
|
+
"timestamp": {
|
|
131
|
+
"kind": "optional",
|
|
132
|
+
"inner": {
|
|
133
|
+
"kind": "bool"
|
|
134
|
+
},
|
|
135
|
+
"default": true
|
|
136
|
+
},
|
|
137
|
+
"traceInfo": {
|
|
138
|
+
"kind": "optional",
|
|
139
|
+
"inner": {
|
|
140
|
+
"kind": "bool"
|
|
141
|
+
},
|
|
142
|
+
"default": true
|
|
143
|
+
},
|
|
144
|
+
"prettyPrint": {
|
|
145
|
+
"kind": "optional",
|
|
146
|
+
"inner": {
|
|
147
|
+
"kind": "bool"
|
|
148
|
+
},
|
|
149
|
+
"default": false
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": [],
|
|
153
|
+
"unknownKeys": "strip"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"required": [
|
|
157
|
+
"rotation",
|
|
158
|
+
"levels",
|
|
159
|
+
"format"
|
|
160
|
+
],
|
|
161
|
+
"unknownKeys": "strip"
|
|
162
|
+
},
|
|
163
|
+
"definitions": {},
|
|
164
|
+
"extensions": {}
|
|
165
|
+
}
|
|
18
166
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bsb/observable-logging-file",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "(AGPL-3.0-only OR Commercial)",
|
|
6
6
|
"author": {
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"prepublishOnly": "npm run build"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@bsb/base": "^9.
|
|
41
|
+
"@bsb/base": "^9.1.6"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@anyvali/js": "^0.2.0",
|
|
45
45
|
"rotating-file-stream": "^3.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@types/node": "^25.
|
|
48
|
+
"@types/node": "^25.6.0",
|
|
49
49
|
"typescript": "^5.9.0",
|
|
50
50
|
"mocha": "^11.0.0",
|
|
51
|
-
"@bsb/base": "^9.
|
|
51
|
+
"@bsb/base": "^9.1.6"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=23.0.0",
|