Salamanders typically inhabit decaying logs. When these logs are used as firewood, salamanders attempt to escape, leading to the belief that they emerged from flames or possessed fire-resistant qualities.