logging: fix defn ordering