moved bot.log defn to core