Skip to content

Commit 855c34f

Browse files
hilaryRopecorda.ilaria@gmail.com
and
corda.ilaria@gmail.com
authored
chore: remove LogTrace as it is not exposed by the CLI and adjust the README.md, accordingly (#38)
Co-authored-by: corda.ilaria@gmail.com <ilariac691@gmail.com>
1 parent de6b7b8 commit 855c34f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,21 +193,20 @@ Extism provides a simple [logging function](https://pkg.go.dev/github.com/extism
193193
func logStuff() int32 {
194194
pdk.Log(pdk.LogInfo, "An info log!")
195195
pdk.Log(pdk.LogDebug, "A debug log!")
196-
pdk.Log(pdk.LogWarn, "A trace log!")
196+
pdk.Log(pdk.LogWarn, "A warn log!")
197197
pdk.Log(pdk.LogError, "An error log!")
198-
pdk.Log(pdk.LogTrace, "A trace log!")
199198
return 0
200199
}
201200
```
202201

203202
From [Extism CLI](https://github.com/extism/cli):
204203

205204
```bash
206-
extism call plugin.wasm log_stuff --wasi --log-level=trace
205+
extism call plugin.wasm log_stuff --wasi --log-level=debug
207206
2023/10/12 12:11:23 Calling function : log_stuff
208207
2023/10/12 12:11:23 An info log!
209208
2023/10/12 12:11:23 A debug log!
210-
2023/10/12 12:11:23 A trace log!
209+
2023/10/12 12:11:23 A warn log!
211210
2023/10/12 12:11:23 An error log!
212211
```
213212

extism_pdk.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const (
1919
LogDebug
2020
LogWarn
2121
LogError
22-
LogTrace
2322
)
2423

2524
func load(offset extismPointer, buf []byte) {

0 commit comments

Comments
 (0)