Revert "replace deprecated log callbacks"

Log callback changes were reverted upstream.

This reverts commit c626e0e848043c6c65b6ab6747038cac95535701.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>