Use named module logger in dynamic inference engine (#6001)