Douse the entire log with water to put the fire out. Continue pouring until the hissing sound stops, and all the embers are out.
If water is not readily available, but sand or dirt is, cover the log with it. Sand absorbs heat and deprives the fire of oxygen.
If a dry chemical fire extinguisher is handy, spray the log with it.