#webassembly #wasm #wasi #wasmcloud #logging

wasmcloud-logging

Structured logging capability provider for the wasmCloud host runtime

4 releases

0.9.4 May 18, 2021
0.9.3 Mar 18, 2021
0.9.1 Feb 11, 2021
0.9.0 Feb 10, 2021

#629 in WebAssembly

Download history 4/week @ 2022-01-28 4/week @ 2022-02-18 9/week @ 2022-03-11 16/week @ 2022-03-18 1/week @ 2022-04-08 4/week @ 2022-04-22 32/week @ 2022-04-29 29/week @ 2022-05-06

65 downloads per month

Apache-2.0

8KB
83 lines

crates.io  Rust  license  documentation

wasmCloud Logging Provider

This library is a native capability provider for the wasmcloud:logging capability. Only actors signed with tokens containing this capability privilege will be allowed to use it. It allows actors to use normal log macros (like info!, warn!, error!, etc, to write logs from within the actor.

It should be compiled as a native binary (linux: .so, mac: .dylib, windows: dll, etc) and made available to the wasmCloud host runtime as a plugin. This is commonly done by creating a provider-archive

If you want to statically link (embed) this capability provider into a custom host, then enable the static_plugin feature in your dependencies as follows:

wasmcloud-logging = { version="??", features = ["static_plugin"] }

Dependencies

~2.3–3.5MB
~85K SLoC