{"comment":{"url":"https://api.github.com/repos/last210/Web_Scraper/comments/14538877","html_url":"https://github.com/last210/Web_Scraper/commit/942bdfeb289fab70975578199c1abc41e48132ea#commitcomment-14538877","id":14538877,"user":{"login":"anthony-cervantes","id":2490783,"avatar_url":"https://avatars.githubusercontent.com/u/2490783?v=3","gravatar_id":"","url":"https://api.github.com/users/anthony-cervantes","html_url":"https://github.com/anthony-cervantes","followers_url":"https://api.github.com/users/anthony-cervantes/followers","following_url":"https://api.github.com/users/anthony-cervantes/following{/other_user}","gists_url":"https://api.github.com/users/anthony-cervantes/gists{/gist_id}","starred_url":"https://api.github.com/users/anthony-cervantes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthony-cervantes/subscriptions","organizations_url":"https://api.github.com/users/anthony-cervantes/orgs","repos_url":"https://api.github.com/users/anthony-cervantes/repos","events_url":"https://api.github.com/users/anthony-cervantes/events{/privacy}","received_events_url":"https://api.github.com/users/anthony-cervantes/received_events","type":"User","site_admin":false},"position":4,"line":8,"path":"Web_Scraper.py","commit_id":"942bdfeb289fab70975578199c1abc41e48132ea","created_at":"2015-11-20T23:02:21Z","updated_at":"2015-11-20T23:02:21Z","body":"Heres a function example to enable logging to sdout\r\n\r\ndef configure_logging():\r\n    \"\"\"\r\n    Configure the loggers\r\n    \"\"\"\r\n    root_logger = logging.getLogger()\r\n    log_formatter = logging.Formatter(\r\n        \"%(asctime)s [%(levelname)s] %(name)s: %(message)s\",\r\n        \"%Y-%m-%d %H:%M:%S\")\r\n    console_handler = logging.StreamHandler()\r\n    console_handler.setFormatter(log_formatter)\r\n    root_logger.addHandler(console_handler)\r\n    root_logger.setLevel(logging.DEBUG)"}}