better, idiomatic logging