Set type hint for logger