set the logger to error log