add the log class to add downloading log function