add DEBUG=* logging support
Merge pull request #1 from maxogden/debug-log

add DEBUG=* logging support