setup root logger func