Split up Android logging code to separate header file