Add log level support

Please check if all log levels are appropriate and if my env-reading
stuff can be optimized.
Should be `LOG_ERROR`