{"action":"opened","issue":{"url":"https://api.github.com/repos/ddeboer/data-import/issues/192","labels_url":"https://api.github.com/repos/ddeboer/data-import/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/ddeboer/data-import/issues/192/comments","events_url":"https://api.github.com/repos/ddeboer/data-import/issues/192/events","html_url":"https://github.com/ddeboer/data-import/issues/192","id":70495569,"number":192,"title":"Undefined variable: logger","user":{"login":"snobear","id":696230,"avatar_url":"https://avatars.githubusercontent.com/u/696230?v=3","gravatar_id":"","url":"https://api.github.com/users/snobear","html_url":"https://github.com/snobear","followers_url":"https://api.github.com/users/snobear/followers","following_url":"https://api.github.com/users/snobear/following{/other_user}","gists_url":"https://api.github.com/users/snobear/gists{/gist_id}","starred_url":"https://api.github.com/users/snobear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snobear/subscriptions","organizations_url":"https://api.github.com/users/snobear/orgs","repos_url":"https://api.github.com/users/snobear/repos","events_url":"https://api.github.com/users/snobear/events{/privacy}","received_events_url":"https://api.github.com/users/snobear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-23T19:44:40Z","updated_at":"2015-04-23T19:44:40Z","closed_at":null,"body":"Hi, \r\n\r\nCan you tell me where the `$logger` object comes from per the README, i.e. how to initialize a logger to pass to a workflow?  I'm reading in a csv file in strict mode and I want to capture and display any errors to the user.\r\n\r\nMy code:\r\n\r\n```\r\nrequire_once 'vendor/autoload.php';\r\nuse Ddeboer\\DataImport\\Workflow;\r\nuse Ddeboer\\DataImport\\Reader\\CsvReader;\r\nuse Ddeboer\\DataImport\\Filter;\r\n\r\n$file = new \\SplFileObject('mydata.csv');\r\n$reader = new CsvReader($file);\r\n$reader->setHeaderRowNumber(0);\r\n$reader->setStrict(true);\r\n$workflow = new Workflow($reader, $logger); // what is $logger?\r\n$result = $workflow\r\n    ->setSkipItemOnFailure(false)\r\n    ->process();\r\n\r\necho \"<pre>\" . print_r($result, 1) . \"</pre>\";\r\n```\r\n\r\nI assume $logger is part of the `data-import` library..or is it some sort of generic php logger utility?\r\n\r\nThanks for the help!"}}