Log finally fixed up for global usage

Read doxygen comments for more info.