This add potential logging support for systrace tools plugin (provided via tools_helper::logger crate). It is recommended because call generic logging API (such as env_logger) isn't considered safe, because the latter is too high level, and does allocations.
tools_helper::logger on the other hand doesn't use allocations, and it also uses spin locks for thread safety.
The (tool) log can be enabled by setting SYSTOOL_LOG=xxx for systrace.
This add potential logging support for
systrace
tools plugin (provided viatools_helper::logger
crate). It is recommended because call generic logging API (such asenv_logger
) isn't considered safe, because the latter is too high level, and does allocations.tools_helper::logger
on the other hand doesn't use allocations, and it also uses spin locks for thread safety.The (tool) log can be enabled by setting
SYSTOOL_LOG=xxx
forsystrace
.