Turn off the gas valve and the electrical power to the fireplace and allow it to cool.
Remove the logs and burner, following the specific directions provided by the manufacturer of the gas fireplace.
Bring the burner outside and scrub it gently with a toothbrush with soft bristles. Do the same for the logs.
Vacuum the interior of the fireplace thoroughly, including the burner assembly and the area around the pilot light.
Replace the burner and logs.
Turn the gas and electric power on so you can relight the pilot light, following the manufacturer’s specific directions.