Fix log action order in generaloption

can you detect if multiple log levels were defined in the configuration or environment, and throw an error in that case?