Added logger into context factory