Debug logging changes

Don’t write out logs by default unless you are using -server or -daemon
flags
Write debug logs out if you specify the -debuglog flag
Do not write debug logs out if you specify -nodebuglog
Write debug logs out if you specify -debug (overrides all other options)