@twin.org/logging-service 0.0.3-next.1 → 0.0.3-next.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.
package/README.md
CHANGED
package/docs/changelog.md
CHANGED
|
@@ -1,23 +1,51 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0.3-next.
|
|
3
|
+
## [0.0.3-next.3](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.3-next.2...logging-service-v0.0.3-next.3) (2026-05-11)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Features
|
|
7
7
|
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
8
|
+
* typescript 6 update ([cb28b05](https://github.com/iotaledger/twin-logging/commit/cb28b0557595d5ba9b25fab2d9f1222590787f5a))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/logging-models bumped from 0.0.3-next.2 to 0.0.3-next.3
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.2](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.3-next.1...logging-service-v0.0.3-next.2) (2026-03-02)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* api data types ([8d37cab](https://github.com/iotaledger/twin-logging/commit/8d37cab7ec759f079b6480bcc27d739357dbc392))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/logging-models bumped from 0.0.3-next.1 to 0.0.3-next.2
|
|
30
|
+
|
|
31
|
+
## [0.0.3-next.1](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.3-next.0...logging-service-v0.0.3-next.1) (2025-11-10)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* add context id features ([#33](https://github.com/iotaledger/twin-logging/issues/33)) ([38e982c](https://github.com/iotaledger/twin-logging/commit/38e982c9f009019fc02b67d919444b52657c9021))
|
|
37
|
+
* add production release automation ([5dbcad8](https://github.com/iotaledger/twin-logging/commit/5dbcad8b105d749947c4fda19c814373cee2a172))
|
|
38
|
+
* add validate-locales ([df53f13](https://github.com/iotaledger/twin-logging/commit/df53f1331394f2f9333e91e4995a88dded90e484))
|
|
39
|
+
* eslint migration to flat config ([1f9fdde](https://github.com/iotaledger/twin-logging/commit/1f9fddedfdcce9942afed431d9460a0f22092744))
|
|
40
|
+
* remove unused namespace ([7eb6575](https://github.com/iotaledger/twin-logging/commit/7eb65758fbdc9a42f68d149702ba03c000556325))
|
|
41
|
+
* update dependencies ([976fc06](https://github.com/iotaledger/twin-logging/commit/976fc06976c4899769486b7cb2e827c407d7fc89))
|
|
42
|
+
* update framework core ([aac823c](https://github.com/iotaledger/twin-logging/commit/aac823c2ead88843618b8a82b308d5a793411764))
|
|
43
|
+
* use shared store mechanism ([#20](https://github.com/iotaledger/twin-logging/issues/20)) ([bbacd31](https://github.com/iotaledger/twin-logging/commit/bbacd31af991d82d84294ad432a40830692880ca))
|
|
16
44
|
|
|
17
45
|
|
|
18
46
|
### Bug Fixes
|
|
19
47
|
|
|
20
|
-
* query params force coercion ([71c5329](https://github.com/
|
|
48
|
+
* query params force coercion ([71c5329](https://github.com/iotaledger/twin-logging/commit/71c53292d300acae0369bd7937c5ca3ab5430689))
|
|
21
49
|
|
|
22
50
|
|
|
23
51
|
### Dependencies
|
|
@@ -26,12 +54,12 @@
|
|
|
26
54
|
* dependencies
|
|
27
55
|
* @twin.org/logging-models bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
28
56
|
|
|
29
|
-
## [0.0.2-next.3](https://github.com/
|
|
57
|
+
## [0.0.2-next.3](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.2-next.2...logging-service-v0.0.2-next.3) (2025-10-09)
|
|
30
58
|
|
|
31
59
|
|
|
32
60
|
### Features
|
|
33
61
|
|
|
34
|
-
* add validate-locales ([df53f13](https://github.com/
|
|
62
|
+
* add validate-locales ([df53f13](https://github.com/iotaledger/twin-logging/commit/df53f1331394f2f9333e91e4995a88dded90e484))
|
|
35
63
|
|
|
36
64
|
|
|
37
65
|
### Dependencies
|
|
@@ -40,12 +68,12 @@
|
|
|
40
68
|
* dependencies
|
|
41
69
|
* @twin.org/logging-models bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
42
70
|
|
|
43
|
-
## [0.0.2-next.2](https://github.com/
|
|
71
|
+
## [0.0.2-next.2](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.2-next.1...logging-service-v0.0.2-next.2) (2025-08-29)
|
|
44
72
|
|
|
45
73
|
|
|
46
74
|
### Features
|
|
47
75
|
|
|
48
|
-
* eslint migration to flat config ([1f9fdde](https://github.com/
|
|
76
|
+
* eslint migration to flat config ([1f9fdde](https://github.com/iotaledger/twin-logging/commit/1f9fddedfdcce9942afed431d9460a0f22092744))
|
|
49
77
|
|
|
50
78
|
|
|
51
79
|
### Dependencies
|
|
@@ -54,21 +82,21 @@
|
|
|
54
82
|
* dependencies
|
|
55
83
|
* @twin.org/logging-models bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
56
84
|
|
|
57
|
-
## [0.0.2-next.1](https://github.com/
|
|
85
|
+
## [0.0.2-next.1](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.2-next.0...logging-service-v0.0.2-next.1) (2025-08-19)
|
|
58
86
|
|
|
59
87
|
|
|
60
88
|
### Features
|
|
61
89
|
|
|
62
|
-
* add production release automation ([5dbcad8](https://github.com/
|
|
63
|
-
* remove unused namespace ([7eb6575](https://github.com/
|
|
64
|
-
* update dependencies ([976fc06](https://github.com/
|
|
65
|
-
* update framework core ([aac823c](https://github.com/
|
|
66
|
-
* use shared store mechanism ([#20](https://github.com/
|
|
90
|
+
* add production release automation ([5dbcad8](https://github.com/iotaledger/twin-logging/commit/5dbcad8b105d749947c4fda19c814373cee2a172))
|
|
91
|
+
* remove unused namespace ([7eb6575](https://github.com/iotaledger/twin-logging/commit/7eb65758fbdc9a42f68d149702ba03c000556325))
|
|
92
|
+
* update dependencies ([976fc06](https://github.com/iotaledger/twin-logging/commit/976fc06976c4899769486b7cb2e827c407d7fc89))
|
|
93
|
+
* update framework core ([aac823c](https://github.com/iotaledger/twin-logging/commit/aac823c2ead88843618b8a82b308d5a793411764))
|
|
94
|
+
* use shared store mechanism ([#20](https://github.com/iotaledger/twin-logging/issues/20)) ([bbacd31](https://github.com/iotaledger/twin-logging/commit/bbacd31af991d82d84294ad432a40830692880ca))
|
|
67
95
|
|
|
68
96
|
|
|
69
97
|
### Bug Fixes
|
|
70
98
|
|
|
71
|
-
* query params force coercion ([71c5329](https://github.com/
|
|
99
|
+
* query params force coercion ([71c5329](https://github.com/iotaledger/twin-logging/commit/71c53292d300acae0369bd7937c5ca3ab5430689))
|
|
72
100
|
|
|
73
101
|
|
|
74
102
|
### Dependencies
|
|
@@ -82,7 +110,7 @@
|
|
|
82
110
|
|
|
83
111
|
### Features
|
|
84
112
|
|
|
85
|
-
* release to production ([3458161](https://github.com/
|
|
113
|
+
* release to production ([3458161](https://github.com/iotaledger/twin-logging/commit/3458161b4bb530f86e4d1fe06123d885cdcb114d))
|
|
86
114
|
|
|
87
115
|
|
|
88
116
|
### Dependencies
|
|
@@ -91,12 +119,12 @@
|
|
|
91
119
|
* dependencies
|
|
92
120
|
* @twin.org/logging-models bumped from ^0.0.0 to ^0.0.1
|
|
93
121
|
|
|
94
|
-
## [0.0.1-next.16](https://github.com/
|
|
122
|
+
## [0.0.1-next.16](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.1-next.15...logging-service-v0.0.1-next.16) (2025-06-20)
|
|
95
123
|
|
|
96
124
|
|
|
97
125
|
### Bug Fixes
|
|
98
126
|
|
|
99
|
-
* query params force coercion ([71c5329](https://github.com/
|
|
127
|
+
* query params force coercion ([71c5329](https://github.com/iotaledger/twin-logging/commit/71c53292d300acae0369bd7937c5ca3ab5430689))
|
|
100
128
|
|
|
101
129
|
|
|
102
130
|
### Dependencies
|
|
@@ -105,12 +133,12 @@
|
|
|
105
133
|
* dependencies
|
|
106
134
|
* @twin.org/logging-models bumped from 0.0.1-next.15 to 0.0.1-next.16
|
|
107
135
|
|
|
108
|
-
## [0.0.1-next.15](https://github.com/
|
|
136
|
+
## [0.0.1-next.15](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.1-next.14...logging-service-v0.0.1-next.15) (2025-06-12)
|
|
109
137
|
|
|
110
138
|
|
|
111
139
|
### Features
|
|
112
140
|
|
|
113
|
-
* update dependencies ([976fc06](https://github.com/
|
|
141
|
+
* update dependencies ([976fc06](https://github.com/iotaledger/twin-logging/commit/976fc06976c4899769486b7cb2e827c407d7fc89))
|
|
114
142
|
|
|
115
143
|
|
|
116
144
|
### Dependencies
|
|
@@ -119,12 +147,12 @@
|
|
|
119
147
|
* dependencies
|
|
120
148
|
* @twin.org/logging-models bumped from 0.0.1-next.14 to 0.0.1-next.15
|
|
121
149
|
|
|
122
|
-
## [0.0.1-next.14](https://github.com/
|
|
150
|
+
## [0.0.1-next.14](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.1-next.13...logging-service-v0.0.1-next.14) (2025-04-17)
|
|
123
151
|
|
|
124
152
|
|
|
125
153
|
### Features
|
|
126
154
|
|
|
127
|
-
* use shared store mechanism ([#20](https://github.com/
|
|
155
|
+
* use shared store mechanism ([#20](https://github.com/iotaledger/twin-logging/issues/20)) ([bbacd31](https://github.com/iotaledger/twin-logging/commit/bbacd31af991d82d84294ad432a40830692880ca))
|
|
128
156
|
|
|
129
157
|
|
|
130
158
|
### Dependencies
|
|
@@ -133,7 +161,7 @@
|
|
|
133
161
|
* dependencies
|
|
134
162
|
* @twin.org/logging-models bumped from 0.0.1-next.13 to 0.0.1-next.14
|
|
135
163
|
|
|
136
|
-
## [0.0.1-next.13](https://github.com/
|
|
164
|
+
## [0.0.1-next.13](https://github.com/iotaledger/twin-logging/compare/logging-service-v0.0.1-next.12...logging-service-v0.0.1-next.13) (2025-03-28)
|
|
137
165
|
|
|
138
166
|
|
|
139
167
|
### Miscellaneous Chores
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,101 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Logging Service Examples
|
|
2
|
+
|
|
3
|
+
Use these examples to route application logs through a configurable connector and query recent entries for troubleshooting.
|
|
4
|
+
|
|
5
|
+
## LoggingService
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import {
|
|
9
|
+
LoggingConnectorFactory,
|
|
10
|
+
type ILogEntry,
|
|
11
|
+
type ILoggingConnector
|
|
12
|
+
} from '@twin.org/logging-models';
|
|
13
|
+
import { LoggingService } from '@twin.org/logging-service';
|
|
14
|
+
|
|
15
|
+
class MemoryLoggingConnector implements ILoggingConnector {
|
|
16
|
+
private readonly entries: ILogEntry[] = [];
|
|
17
|
+
|
|
18
|
+
public className(): string {
|
|
19
|
+
return 'MemoryLoggingConnector';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public async log(logEntry: ILogEntry): Promise<void> {
|
|
23
|
+
this.entries.push(logEntry);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public async query(): Promise<{ entities: Partial<ILogEntry>[]; cursor?: string }> {
|
|
27
|
+
return {
|
|
28
|
+
entities: this.entries
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
LoggingConnectorFactory.register('logging', () => new MemoryLoggingConnector());
|
|
34
|
+
|
|
35
|
+
const service = new LoggingService();
|
|
36
|
+
|
|
37
|
+
const className = service.className();
|
|
38
|
+
|
|
39
|
+
await service.log({
|
|
40
|
+
level: 'warn',
|
|
41
|
+
source: 'worker-pool',
|
|
42
|
+
message: 'queueDepthHigh',
|
|
43
|
+
data: {
|
|
44
|
+
depth: 125,
|
|
45
|
+
threshold: 100
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
import {
|
|
52
|
+
LoggingConnectorFactory,
|
|
53
|
+
type ILogEntry,
|
|
54
|
+
type ILoggingConnector
|
|
55
|
+
} from '@twin.org/logging-models';
|
|
56
|
+
import { LoggingService } from '@twin.org/logging-service';
|
|
57
|
+
|
|
58
|
+
class QueryableMemoryConnector implements ILoggingConnector {
|
|
59
|
+
private readonly entries: ILogEntry[] = [
|
|
60
|
+
{
|
|
61
|
+
level: 'error',
|
|
62
|
+
source: 'worker-pool',
|
|
63
|
+
ts: Date.now() - 2_000,
|
|
64
|
+
message: 'jobTimedOut'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
level: 'info',
|
|
68
|
+
source: 'worker-pool',
|
|
69
|
+
ts: Date.now() - 1_000,
|
|
70
|
+
message: 'jobCompleted'
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
public className(): string {
|
|
75
|
+
return 'QueryableMemoryConnector';
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
public async log(logEntry: ILogEntry): Promise<void> {
|
|
79
|
+
this.entries.push(logEntry);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public async query(): Promise<{ entities: Partial<ILogEntry>[]; cursor?: string }> {
|
|
83
|
+
return {
|
|
84
|
+
entities: this.entries
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
LoggingConnectorFactory.register('logging', () => new QueryableMemoryConnector());
|
|
90
|
+
|
|
91
|
+
const service = new LoggingService();
|
|
92
|
+
|
|
93
|
+
const queryResult = await service.query(
|
|
94
|
+
'error',
|
|
95
|
+
'worker-pool',
|
|
96
|
+
Date.now() - 60_000,
|
|
97
|
+
Date.now(),
|
|
98
|
+
'cursor-21',
|
|
99
|
+
20
|
|
100
|
+
);
|
|
101
|
+
```
|
package/docs/open-api/spec.json
CHANGED
|
@@ -70,12 +70,62 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"responses": {
|
|
73
|
-
"
|
|
74
|
-
"description": "The rest request ended in success with no data."
|
|
73
|
+
"204": {
|
|
74
|
+
"description": "The rest request ended in success with no data."
|
|
75
|
+
},
|
|
76
|
+
"400": {
|
|
77
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
75
78
|
"content": {
|
|
76
|
-
"
|
|
79
|
+
"application/json": {
|
|
77
80
|
"schema": {
|
|
78
|
-
"$ref": "#/components/schemas/
|
|
81
|
+
"$ref": "#/components/schemas/Error"
|
|
82
|
+
},
|
|
83
|
+
"examples": {
|
|
84
|
+
"exampleResponse": {
|
|
85
|
+
"value": {
|
|
86
|
+
"name": "GeneralError",
|
|
87
|
+
"message": "errorMessage",
|
|
88
|
+
"properties": {
|
|
89
|
+
"foo": "bar"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"401": {
|
|
98
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
99
|
+
"content": {
|
|
100
|
+
"application/json": {
|
|
101
|
+
"schema": {
|
|
102
|
+
"$ref": "#/components/schemas/Error"
|
|
103
|
+
},
|
|
104
|
+
"examples": {
|
|
105
|
+
"exampleResponse": {
|
|
106
|
+
"value": {
|
|
107
|
+
"name": "UnauthorizedError",
|
|
108
|
+
"message": "errorMessage"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"500": {
|
|
116
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
117
|
+
"content": {
|
|
118
|
+
"application/json": {
|
|
119
|
+
"schema": {
|
|
120
|
+
"$ref": "#/components/schemas/Error"
|
|
121
|
+
},
|
|
122
|
+
"examples": {
|
|
123
|
+
"exampleResponse": {
|
|
124
|
+
"value": {
|
|
125
|
+
"name": "InternalServerError",
|
|
126
|
+
"message": "errorMessage"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
79
129
|
}
|
|
80
130
|
}
|
|
81
131
|
}
|
|
@@ -114,10 +164,7 @@
|
|
|
114
164
|
"in": "query",
|
|
115
165
|
"required": false,
|
|
116
166
|
"schema": {
|
|
117
|
-
"type":
|
|
118
|
-
"number",
|
|
119
|
-
"string"
|
|
120
|
-
]
|
|
167
|
+
"type": "string"
|
|
121
168
|
}
|
|
122
169
|
},
|
|
123
170
|
{
|
|
@@ -126,10 +173,7 @@
|
|
|
126
173
|
"in": "query",
|
|
127
174
|
"required": false,
|
|
128
175
|
"schema": {
|
|
129
|
-
"type":
|
|
130
|
-
"number",
|
|
131
|
-
"string"
|
|
132
|
-
]
|
|
176
|
+
"type": "string"
|
|
133
177
|
}
|
|
134
178
|
},
|
|
135
179
|
{
|
|
@@ -181,6 +225,63 @@
|
|
|
181
225
|
}
|
|
182
226
|
}
|
|
183
227
|
}
|
|
228
|
+
},
|
|
229
|
+
"400": {
|
|
230
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
231
|
+
"content": {
|
|
232
|
+
"application/json": {
|
|
233
|
+
"schema": {
|
|
234
|
+
"$ref": "#/components/schemas/Error"
|
|
235
|
+
},
|
|
236
|
+
"examples": {
|
|
237
|
+
"exampleResponse": {
|
|
238
|
+
"value": {
|
|
239
|
+
"name": "GeneralError",
|
|
240
|
+
"message": "errorMessage",
|
|
241
|
+
"properties": {
|
|
242
|
+
"foo": "bar"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"401": {
|
|
251
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
252
|
+
"content": {
|
|
253
|
+
"application/json": {
|
|
254
|
+
"schema": {
|
|
255
|
+
"$ref": "#/components/schemas/Error"
|
|
256
|
+
},
|
|
257
|
+
"examples": {
|
|
258
|
+
"exampleResponse": {
|
|
259
|
+
"value": {
|
|
260
|
+
"name": "UnauthorizedError",
|
|
261
|
+
"message": "errorMessage"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"500": {
|
|
269
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
270
|
+
"content": {
|
|
271
|
+
"application/json": {
|
|
272
|
+
"schema": {
|
|
273
|
+
"$ref": "#/components/schemas/Error"
|
|
274
|
+
},
|
|
275
|
+
"examples": {
|
|
276
|
+
"exampleResponse": {
|
|
277
|
+
"value": {
|
|
278
|
+
"name": "InternalServerError",
|
|
279
|
+
"message": "errorMessage"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
184
285
|
}
|
|
185
286
|
}
|
|
186
287
|
}
|
|
@@ -189,6 +290,7 @@
|
|
|
189
290
|
"components": {
|
|
190
291
|
"schemas": {
|
|
191
292
|
"Error": {
|
|
293
|
+
"description": "Model to describe serialized error.",
|
|
192
294
|
"type": "object",
|
|
193
295
|
"properties": {
|
|
194
296
|
"name": {
|
|
@@ -197,7 +299,7 @@
|
|
|
197
299
|
},
|
|
198
300
|
"message": {
|
|
199
301
|
"type": "string",
|
|
200
|
-
"description": "The message for the error."
|
|
302
|
+
"description": "The message for the error as an i18n key."
|
|
201
303
|
},
|
|
202
304
|
"source": {
|
|
203
305
|
"type": "string",
|
|
@@ -219,11 +321,10 @@
|
|
|
219
321
|
"required": [
|
|
220
322
|
"name",
|
|
221
323
|
"message"
|
|
222
|
-
]
|
|
223
|
-
"additionalProperties": false,
|
|
224
|
-
"description": "Model to describe serialized error."
|
|
324
|
+
]
|
|
225
325
|
},
|
|
226
326
|
"LogEntry": {
|
|
327
|
+
"description": "Interface describing a log entry.",
|
|
227
328
|
"type": "object",
|
|
228
329
|
"properties": {
|
|
229
330
|
"level": {
|
|
@@ -254,39 +355,32 @@
|
|
|
254
355
|
"level",
|
|
255
356
|
"source",
|
|
256
357
|
"message"
|
|
257
|
-
]
|
|
258
|
-
"additionalProperties": false,
|
|
259
|
-
"description": "Interface describing a log entry."
|
|
358
|
+
]
|
|
260
359
|
},
|
|
261
360
|
"LogLevel": {
|
|
361
|
+
"description": "The log levels.",
|
|
262
362
|
"anyOf": [
|
|
263
363
|
{
|
|
264
|
-
"type": "string",
|
|
265
364
|
"const": "info",
|
|
266
365
|
"description": "Info."
|
|
267
366
|
},
|
|
268
367
|
{
|
|
269
|
-
"type": "string",
|
|
270
368
|
"const": "error",
|
|
271
369
|
"description": "Error."
|
|
272
370
|
},
|
|
273
371
|
{
|
|
274
|
-
"type": "string",
|
|
275
372
|
"const": "warn",
|
|
276
373
|
"description": "Warn."
|
|
277
374
|
},
|
|
278
375
|
{
|
|
279
|
-
"type": "string",
|
|
280
376
|
"const": "trace",
|
|
281
377
|
"description": "Trace."
|
|
282
378
|
},
|
|
283
379
|
{
|
|
284
|
-
"type": "string",
|
|
285
380
|
"const": "debug",
|
|
286
381
|
"description": "Debug."
|
|
287
382
|
}
|
|
288
|
-
]
|
|
289
|
-
"description": "The log levels."
|
|
383
|
+
]
|
|
290
384
|
},
|
|
291
385
|
"LoggingListResponse": {
|
|
292
386
|
"type": "object",
|
|
@@ -306,7 +400,6 @@
|
|
|
306
400
|
"required": [
|
|
307
401
|
"entities"
|
|
308
402
|
],
|
|
309
|
-
"additionalProperties": false,
|
|
310
403
|
"description": "The response payload."
|
|
311
404
|
}
|
|
312
405
|
},
|
|
@@ -28,7 +28,7 @@ The options for the connector.
|
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### CLASS\_NAME
|
|
31
|
+
### CLASS\_NAME {#class_name}
|
|
32
32
|
|
|
33
33
|
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ Runtime name for the class.
|
|
|
36
36
|
|
|
37
37
|
## Methods
|
|
38
38
|
|
|
39
|
-
### className()
|
|
39
|
+
### className() {#classname}
|
|
40
40
|
|
|
41
41
|
> **className**(): `string`
|
|
42
42
|
|
|
@@ -54,7 +54,7 @@ The class name of the component.
|
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
### log()
|
|
57
|
+
### log() {#log}
|
|
58
58
|
|
|
59
59
|
> **log**(`logEntry`): `Promise`\<`void`\>
|
|
60
60
|
|
|
@@ -80,7 +80,7 @@ Nothing.
|
|
|
80
80
|
|
|
81
81
|
***
|
|
82
82
|
|
|
83
|
-
### query()
|
|
83
|
+
### query() {#query}
|
|
84
84
|
|
|
85
85
|
> **query**(`level?`, `source?`, `timeStart?`, `timeEnd?`, `cursor?`, `limit?`): `Promise`\<\{ `entities`: `ILogEntry`[]; `cursor?`: `string`; \}\>
|
|
86
86
|
|
|
@@ -4,9 +4,9 @@ Options for the logging service constructor.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### loggingConnectorType?
|
|
7
|
+
### loggingConnectorType? {#loggingconnectortype}
|
|
8
8
|
|
|
9
|
-
> `optional` **loggingConnectorType
|
|
9
|
+
> `optional` **loggingConnectorType?**: `string`
|
|
10
10
|
|
|
11
11
|
The type of the logging connector to use.
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/logging-service",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.3",
|
|
4
|
+
"description": "Exposes logging operations through service routes and API contracts for server-side integration.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/logging.git",
|
|
8
8
|
"directory": "packages/logging-service"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@twin.org/api-models": "next",
|
|
18
18
|
"@twin.org/core": "next",
|
|
19
19
|
"@twin.org/entity": "next",
|
|
20
|
-
"@twin.org/logging-models": "0.0.3-next.
|
|
20
|
+
"@twin.org/logging-models": "0.0.3-next.3",
|
|
21
21
|
"@twin.org/nameof": "next",
|
|
22
22
|
"@twin.org/web": "next"
|
|
23
23
|
},
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"business-logic"
|
|
50
50
|
],
|
|
51
51
|
"bugs": {
|
|
52
|
-
"url": "git+https://github.com/
|
|
52
|
+
"url": "git+https://github.com/iotaledger/logging/issues"
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://twindev.org"
|
|
55
55
|
}
|