Refactors Log class to MerlinLog.