Commit c3fd01c
authored
feat(ocap-kernel): Implement hierarchical logging (#504)
Closes: #217
This PR constitutes the majority of the lift for the referenced logging
ticket.
### `@metamask/logger`
- implements a protocol for serialized transfer of log entries over a
`@metamask/streams` `DuplexStream`
- adds the `injectStream` method to the `Logger` for subscribing to
logger notifications
- adds `makeArrayTransport` which returns a transport which appends log
entries to the supplied array argument
### `@MetaMask/ocap-kernel`
- The logger passed to the `Kernel` constructor is plumbed to
subcomponents all the way to the vat user code's console endowment and
logger power.
### `@ocap/kernel-test`
- no longer relies on intercepting `process.stdout` to assert expected
test vat operations
- utilizes logger tags for distinguishing different vat operations1 parent 521272f commit c3fd01c
File tree
49 files changed
+1369
-649
lines changed- packages
- extension/src
- kernel-test
- src
- vats
- logger
- src
- test
- workers
- nodejs
- src
- kernel
- vat
- test/workers
- ocap-kernel/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+1369
-649
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
220 | 223 | | |
221 | | - | |
| 224 | + | |
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
0 commit comments