wip: Added global logging