Added method setLogAllChains() to turn on/off logging for chains other
than chain 0. By default, now only chain 0 has logging on.