Add smarter getParentLogger that works on Java 6 and Java 7+

Fixes gh-1518
Closes gh-1519