Logging and Debugging

Here are a few quick notes on getting logging output from the simulator.

  virtual void Behavior(EventWindow<CC>& window) const
  {
    T self = window.GetCenterAtom();
    LOG.Message("At (%d,%d): type is %04x (%s)",
                window.GetCenterInTile().GetX(),
                window.GetCenterInTile().GetY(),
                self.GetType(),
                "so there");
 
  }

might print something like 20140928032150-3123: At (14,3): type is 00F0 (so there) if the logging level was 3 or higher.