A Cat 349 excavator caught fire while placing logs on a fire when the excavator caught fire. The operator exited the cab and moved away from the machine unharmed. The fire department responded but was unable to extinguish the fire due to the location of the excavator. The excavator was a total loss.