I’ve never seen a log start foaming before. My only theory is maybe there was some kind of fungi or lichen on the log that made it react to the heat that way. The only part I saw foaming was the tip end of the log, not the side of the log where lichen or some other kind of fungi is usually visible. The end of the log looked perfectly normal (no fungi or niches) aside from the foaming.
Thanks in advance for your theories!