allow APP_ERROR_LOG to be a stream