Changed log system to use a singleton/getInstance paradigm.