Allow logging to be enabled by environment variable.

Allows you do things like ADB_TRACE=services,sync