[][src]Crate rc_log_ffi

This crate allows users from the other side of the FFI to hook into Rust's log crate, which is used by us and several of our dependencies. The primary use case is providing logs to Android and iOS in a way that is more flexible than writing to liblog (which goes to logcat, which cannot be accessed by programs on the device, short of rooting it), or stdout/stderr.

See the header comment in android.rs and fallback.rs for details.

It's worth noting that the log crate is rather inflexable, in that it does not allow users to change loggers after the first initialization. We work around this using our settable_log module.

Modules

ios
settable_log

Enums

LogLevel

Functions

level_filter_from_i32
rc_log_adapter_create
rc_log_adapter_destroy

Safety

rc_log_adapter_destroy_string

Public destructor for strings managed by the other side of the FFI.

rc_log_adapter_set_max_level
rc_log_adapter_test__log_msg
string_to_cstring_lossy