added error logging levels