Flush log if entering debug config
Add network debug function

Use NSLogger