Setup global $logger for Logger middleware, fix #14