android: logger backport from 3.8