* Abiotic factors are non-living components of an ecosystem.
* Biotic factors are living components of an ecosystem.
While a log may provide habitat for living organisms, it is not itself alive. It was once a living tree, but after death, it becomes a part of the non-living environment.
Here's a way to think about it:
* Living: Animals, plants, fungi, bacteria
* Non-living: Rocks, water, air, logs, soil, sunlight