@twin.org/logging-connector-console 0.0.1-next.10 → 0.0.1-next.11
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/dist/cjs/index.cjs
CHANGED
@@ -100,20 +100,6 @@ class ConsoleLoggingConnector {
|
|
100
100
|
globalThis.console[logEntry.level](...params);
|
101
101
|
}
|
102
102
|
}
|
103
|
-
/**
|
104
|
-
* Query the log entries.
|
105
|
-
* @param conditions The conditions to match for the entities.
|
106
|
-
* @param sortProperties The optional sort order.
|
107
|
-
* @param properties The optional keys to return, defaults to all.
|
108
|
-
* @param cursor The cursor to request the next page of entities.
|
109
|
-
* @param pageSize The maximum number of entities in a page.
|
110
|
-
* @returns All the entities for the storage matching the conditions,
|
111
|
-
* and a cursor which can be used to request more entities.
|
112
|
-
* @throws NotImplementedError if the implementation does not support retrieval.
|
113
|
-
*/
|
114
|
-
async query(conditions, sortProperties, properties, cursor, pageSize) {
|
115
|
-
throw new core.NotImplementedError(this.CLASS_NAME, "query");
|
116
|
-
}
|
117
103
|
/**
|
118
104
|
* Convert a string to a color.
|
119
105
|
* @param str The string to convert.
|
package/dist/esm/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Guards, Is
|
1
|
+
import { Guards, Is } from '@twin.org/core';
|
2
2
|
import { LogEntryHelper } from '@twin.org/logging-models';
|
3
3
|
|
4
4
|
// Copyright 2024 IOTA Stiftung.
|
@@ -98,20 +98,6 @@ class ConsoleLoggingConnector {
|
|
98
98
|
globalThis.console[logEntry.level](...params);
|
99
99
|
}
|
100
100
|
}
|
101
|
-
/**
|
102
|
-
* Query the log entries.
|
103
|
-
* @param conditions The conditions to match for the entities.
|
104
|
-
* @param sortProperties The optional sort order.
|
105
|
-
* @param properties The optional keys to return, defaults to all.
|
106
|
-
* @param cursor The cursor to request the next page of entities.
|
107
|
-
* @param pageSize The maximum number of entities in a page.
|
108
|
-
* @returns All the entities for the storage matching the conditions,
|
109
|
-
* and a cursor which can be used to request more entities.
|
110
|
-
* @throws NotImplementedError if the implementation does not support retrieval.
|
111
|
-
*/
|
112
|
-
async query(conditions, sortProperties, properties, cursor, pageSize) {
|
113
|
-
throw new NotImplementedError(this.CLASS_NAME, "query");
|
114
|
-
}
|
115
101
|
/**
|
116
102
|
* Convert a string to a color.
|
117
103
|
* @param str The string to convert.
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import type { EntityCondition, SortDirection } from "@twin.org/entity";
|
2
1
|
import { type ILogEntry, type ILoggingConnector } from "@twin.org/logging-models";
|
3
2
|
import type { IConsoleLoggingConnectorConstructorOptions } from "./models/IConsoleLoggingConnectorConstructorOptions";
|
4
3
|
/**
|
@@ -24,28 +23,4 @@ export declare class ConsoleLoggingConnector implements ILoggingConnector {
|
|
24
23
|
* @returns Nothing.
|
25
24
|
*/
|
26
25
|
log(logEntry: ILogEntry): Promise<void>;
|
27
|
-
/**
|
28
|
-
* Query the log entries.
|
29
|
-
* @param conditions The conditions to match for the entities.
|
30
|
-
* @param sortProperties The optional sort order.
|
31
|
-
* @param properties The optional keys to return, defaults to all.
|
32
|
-
* @param cursor The cursor to request the next page of entities.
|
33
|
-
* @param pageSize The maximum number of entities in a page.
|
34
|
-
* @returns All the entities for the storage matching the conditions,
|
35
|
-
* and a cursor which can be used to request more entities.
|
36
|
-
* @throws NotImplementedError if the implementation does not support retrieval.
|
37
|
-
*/
|
38
|
-
query(conditions?: EntityCondition<ILogEntry>, sortProperties?: {
|
39
|
-
property: keyof Omit<ILogEntry, "error" | "data">;
|
40
|
-
sortDirection: SortDirection;
|
41
|
-
}[], properties?: (keyof ILogEntry)[], cursor?: string, pageSize?: number): Promise<{
|
42
|
-
/**
|
43
|
-
* The entities, which can be partial if a limited keys list was provided.
|
44
|
-
*/
|
45
|
-
entities: Partial<ILogEntry>[];
|
46
|
-
/**
|
47
|
-
* An optional cursor, when defined can be used to call find to get more entities.
|
48
|
-
*/
|
49
|
-
cursor?: string;
|
50
|
-
}>;
|
51
26
|
}
|
package/docs/changelog.md
CHANGED
@@ -71,58 +71,3 @@ Nothing.
|
|
71
71
|
#### Implementation of
|
72
72
|
|
73
73
|
`ILoggingConnector.log`
|
74
|
-
|
75
|
-
***
|
76
|
-
|
77
|
-
### query()
|
78
|
-
|
79
|
-
> **query**(`conditions`?, `sortProperties`?, `properties`?, `cursor`?, `pageSize`?): `Promise`\<\{ `entities`: `Partial`\<`ILogEntry`\>[]; `cursor`: `string`; \}\>
|
80
|
-
|
81
|
-
Query the log entries.
|
82
|
-
|
83
|
-
#### Parameters
|
84
|
-
|
85
|
-
##### conditions?
|
86
|
-
|
87
|
-
`EntityCondition`\<`ILogEntry`\>
|
88
|
-
|
89
|
-
The conditions to match for the entities.
|
90
|
-
|
91
|
-
##### sortProperties?
|
92
|
-
|
93
|
-
`object`[]
|
94
|
-
|
95
|
-
The optional sort order.
|
96
|
-
|
97
|
-
##### properties?
|
98
|
-
|
99
|
-
keyof `ILogEntry`[]
|
100
|
-
|
101
|
-
The optional keys to return, defaults to all.
|
102
|
-
|
103
|
-
##### cursor?
|
104
|
-
|
105
|
-
`string`
|
106
|
-
|
107
|
-
The cursor to request the next page of entities.
|
108
|
-
|
109
|
-
##### pageSize?
|
110
|
-
|
111
|
-
`number`
|
112
|
-
|
113
|
-
The maximum number of entities in a page.
|
114
|
-
|
115
|
-
#### Returns
|
116
|
-
|
117
|
-
`Promise`\<\{ `entities`: `Partial`\<`ILogEntry`\>[]; `cursor`: `string`; \}\>
|
118
|
-
|
119
|
-
All the entities for the storage matching the conditions,
|
120
|
-
and a cursor which can be used to request more entities.
|
121
|
-
|
122
|
-
#### Throws
|
123
|
-
|
124
|
-
NotImplementedError if the implementation does not support retrieval.
|
125
|
-
|
126
|
-
#### Implementation of
|
127
|
-
|
128
|
-
`ILoggingConnector.query`
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@twin.org/logging-connector-console",
|
3
|
-
"version": "0.0.1-next.
|
3
|
+
"version": "0.0.1-next.11",
|
4
4
|
"description": "Logging connector implementation using the console",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -15,7 +15,7 @@
|
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
17
|
"@twin.org/core": "next",
|
18
|
-
"@twin.org/logging-models": "0.0.1-next.
|
18
|
+
"@twin.org/logging-models": "0.0.1-next.11",
|
19
19
|
"@twin.org/nameof": "next"
|
20
20
|
},
|
21
21
|
"main": "./dist/cjs/index.cjs",
|