Answer:
A rotting log is nonliving. However, it can have mold, lichen, or fungus growing on it, which is not the log itself. Those three things are living. And though the log was once a living tree, at it's current state, it is nonliving.
I hope this was helpful!