Add unified logging interface for both GAE and non-GAE