Get session and log handler from DSL object.