-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: prefix log level consts, minor package updates (#39)
While using the SDK, I found it difficult to use the log level consts and to assign a log level in the plugin configuration struct. This changes the *LogLevel field to use a non-pointer type, and updates the code accordingly. I think this is ok, since we've define the `iota` 0 value to a `Off` constant. This will be the default / zero-value of the type when left unset in a struct. Also, I have prefixed these log level const names with `LogLevel` -- I think it makes it more clear when looking at the name, e.g. `extism.LogLevelInfo` vs. `extism.Info` Additionally, although unrelated, this PR includes a couple minor changes to use non-deprecated functions from `io` & `os` packages vs. `ioutil`. --------- Co-authored-by: Muhammad Azeez <[email protected]>
- Loading branch information
1 parent
05fa848
commit c4e57ce
Showing
4 changed files
with
46 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters