File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -193,21 +193,20 @@ Extism provides a simple [logging function](https://pkg.go.dev/github.com/extism
193
193
func logStuff () int32 {
194
194
pdk.Log (pdk.LogInfo , " An info log!" )
195
195
pdk.Log (pdk.LogDebug , " A debug log!" )
196
- pdk.Log (pdk.LogWarn , " A trace log!" )
196
+ pdk.Log (pdk.LogWarn , " A warn log!" )
197
197
pdk.Log (pdk.LogError , " An error log!" )
198
- pdk.Log (pdk.LogTrace , " A trace log!" )
199
198
return 0
200
199
}
201
200
```
202
201
203
202
From [ Extism CLI] ( https://github.com/extism/cli ) :
204
203
205
204
``` bash
206
- extism call plugin.wasm log_stuff --wasi --log-level=trace
205
+ extism call plugin.wasm log_stuff --wasi --log-level=debug
207
206
2023/10/12 12:11:23 Calling function : log_stuff
208
207
2023/10/12 12:11:23 An info log!
209
208
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!
211
210
2023/10/12 12:11:23 An error log!
212
211
```
213
212
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ const (
19
19
LogDebug
20
20
LogWarn
21
21
LogError
22
- LogTrace
23
22
)
24
23
25
24
func load (offset extismPointer , buf []byte ) {
You can’t perform that action at this time.
0 commit comments