Build with cflags=-DUSE_RUBY_DEBUG_LOG
, run with RUBY_DEBUG_LOG=stderr RUBY_DEBUG_LOG_FILTER=... ruby ...
.
/* RUBY_DEBUG_LOG: Logging debug information mechanism
*
* This feature provides a mechanism to store logging information
* to a file, stderr or memory space with simple macros.
*