Changed logging variable to normal global bool

There was no reason to make it only a setter. Also updated the
network_example.dart to make it easier to know the logging variable is
part of the distributed_dart lib.