Add log level support

Please check if all log levels are appropriate and if my env-reading
stuff can be optimized.
This should be an error