add log level support in config and start cmd line.

args: -l [info|debug|warn|error]