Logging API which sucks less.