log to error console