Fix log action order in generaloption

you would gather the loglevel before setting the logger, but would mean you can't have any debug output until the option parser is ready with parsing. the log actions turn on the loglevel during the option processing