Added method for logging entity groups , change the log for the entities that are included in transaction