[git-index] move logger declaration to companion object