Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Override logging functions to log directly to Hypermode #102

Merged
merged 11 commits into from
Jun 12, 2024

Conversation

mattjohnsonpint
Copy link
Member

Rather than writing to WASI stdout and stderr, we need to call a host function on the runtime (log) for console.log and related functions. This also includes abort (used when throwing exceptions) and trace (which we don't use much, but is a built-in).

The implementation also simplifies the asconfig.json file used by the user's project, moving most of it to plugin.asconfig.json in the library. A corresponding update will be required on the template project.

Depends on hypermodeinc/modus#224

Completes HYP-1385

@mattjohnsonpint mattjohnsonpint requested a review from a team as a code owner June 12, 2024 22:05
@mattjohnsonpint mattjohnsonpint merged commit 7ff3fb0 into main Jun 12, 2024
20 checks passed
@mattjohnsonpint mattjohnsonpint deleted the mjp/console-log branch June 12, 2024 23:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants