Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: provide plugins get_log_level runtime function & support levels #74

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

nilslice
Copy link
Member

This PR aligns the extism host env with Rust, as per extism/extism#758

NOTE of breaking change:

I've removed the ability to set the log level on the *Plugin itself. To align with Rust SDK, this is only an SDK-global setting. You can still add a custom logger to each plugin function. The SDK won't print any logs unless there is a log function set for each plugin. The global setting is in line with how libraries are expected to respect the main application's log level.

@nilslice nilslice merged commit 24b5f36 into main Sep 16, 2024
3 checks passed
@nilslice nilslice deleted the log-level-state branch September 16, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants