move logger init