logger: refactor code to follow golint's advice
logger: enable log level filter, use "fmt" package to print message instead of "log"
logger: make logger more robust even through access dde-api/logger failed
logger: fix doLog() issue to get runtime file and line
logger: set default log level to "LEVEL_DEBUG" when create logger if environment variable "$DDE_DEBUG" exists