From 2d9df517b5908535848213ebfd24ca0c68828b9f Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Mon, 15 Nov 2021 15:50:08 +1000 Subject: [PATCH] add a note about use in dynamic libraries --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 340b62c9c..8a7c1eea3 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ There are many available implementations to choose from, here are some of the mo * [`win_dbg_logger`](https://docs.rs/win_dbg_logger/*/win_dbg_logger/) * For WebAssembly binaries: * [`console_log`](https://docs.rs/console_log/*/console_log/) +* For dynamic libraries: + * You may need to construct [an FFI-safe wrapper over `log`](https://github.com/rust-lang/log/issues/421) to initialize in your libraries. Executables should choose a logger implementation and initialize it early in the runtime of the program. Logger implementations will typically include a