Logs should be inoculated within 4 weeks of harvesting. Waiting longer (using a dead tree) your mycelium will have to outcompete the other fungi that have already started colonizing the log. Never cut dead, dying, or diseased trees for mushroom growing. You can't use either pasteurization or sterilization for your substrate.