Skip to content

Consider implementing Wasm-side log level #153

Open
@martijneken

Description

@martijneken

In the Rust SDK (and Rust in general) there's a built-in configurable log level:
https://docs.rs/log/latest/log/fn.set_max_level.html

The Rust logger does Wasm-side log filtering based on level:
https://github.com/proxy-wasm/proxy-wasm-rust-sdk/blob/master/src/logger.rs#L51-L53

This would be nice to have in C++ also. Currently every C++log message is transmitted to the host:
https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/blob/master/proxy_wasm_api.h#L61-L92

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions