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

cleanup: simplify logging, include plugin ID in log messages #573

Merged
merged 4 commits into from
Nov 8, 2023

Conversation

zshipko
Copy link
Contributor

@zshipko zshipko commented Nov 7, 2023

My initial goal was to make logging configurable for each plugin instead of global but wasn't able to accomplish that in this PR (still looking into it)

  • Switches from log4rs to fern - this significantly simplifies the logging code
    • Also considered simplelog
  • Adds plugin.id to the logs whenever available
  • Uses extism::plugin::$id target for functions logged from the PDK

@zshipko zshipko changed the title cleanup: simplify logging, improve error messages cleanup: simplify logging, include plugin ID in log messages Nov 7, 2023
@zshipko zshipko merged commit 91257f0 into main Nov 8, 2023
6 checks passed
@zshipko zshipko deleted the cleanup-logging branch November 8, 2023 23:36
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.

None yet

1 participant