added option for changing error log level