Skip to content

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

Merged
nilslice merged 2 commits intomainfrom
log-level-state
Sep 16, 2024
Merged

feat!: provide plugins get_log_level runtime function & support levels#74
nilslice merged 2 commits intomainfrom
log-level-state

Conversation

@nilslice
Copy link
Copy Markdown
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
@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