logger: backport from android-3.4

Signed-off-by: helicopter88 <johnlemon.lol@gmail.com>