{"action":"created","issue":{"url":"https://api.github.com/repos/celery/kombu/issues/712","repository_url":"https://api.github.com/repos/celery/kombu","labels_url":"https://api.github.com/repos/celery/kombu/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/celery/kombu/issues/712/comments","events_url":"https://api.github.com/repos/celery/kombu/issues/712/events","html_url":"https://github.com/celery/kombu/issues/712","id":220386164,"number":712,"title":"Change Format of Logger?","user":{"login":"prof-schacht","id":15263411,"avatar_url":"https://avatars0.githubusercontent.com/u/15263411?v=3","gravatar_id":"","url":"https://api.github.com/users/prof-schacht","html_url":"https://github.com/prof-schacht","followers_url":"https://api.github.com/users/prof-schacht/followers","following_url":"https://api.github.com/users/prof-schacht/following{/other_user}","gists_url":"https://api.github.com/users/prof-schacht/gists{/gist_id}","starred_url":"https://api.github.com/users/prof-schacht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prof-schacht/subscriptions","organizations_url":"https://api.github.com/users/prof-schacht/orgs","repos_url":"https://api.github.com/users/prof-schacht/repos","events_url":"https://api.github.com/users/prof-schacht/events{/privacy}","received_events_url":"https://api.github.com/users/prof-schacht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-08T08:47:02Z","updated_at":"2017-04-17T07:08:49Z","closed_at":null,"body":"Hi Everybody,\r\n\r\nI try to change the output of the logger (from kombu.log import get_logger as kombulogger)\r\nto the following format: \r\nLOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -30s %(funcName) '\r\n              '-35s %(lineno) -5d: %(message)s')\r\n\r\nBut I have no Idea how to do this. Could somebody give me a hint to get this output format for the debug logging working using the get_logger library?\r\n\r\nThanks "},"comment":{"url":"https://api.github.com/repos/celery/kombu/issues/comments/294421631","html_url":"https://github.com/celery/kombu/issues/712#issuecomment-294421631","issue_url":"https://api.github.com/repos/celery/kombu/issues/712","id":294421631,"user":{"login":"georgepsarakis","id":963304,"avatar_url":"https://avatars2.githubusercontent.com/u/963304?v=3","gravatar_id":"","url":"https://api.github.com/users/georgepsarakis","html_url":"https://github.com/georgepsarakis","followers_url":"https://api.github.com/users/georgepsarakis/followers","following_url":"https://api.github.com/users/georgepsarakis/following{/other_user}","gists_url":"https://api.github.com/users/georgepsarakis/gists{/gist_id}","starred_url":"https://api.github.com/users/georgepsarakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgepsarakis/subscriptions","organizations_url":"https://api.github.com/users/georgepsarakis/orgs","repos_url":"https://api.github.com/users/georgepsarakis/repos","events_url":"https://api.github.com/users/georgepsarakis/events{/privacy}","received_events_url":"https://api.github.com/users/georgepsarakis/received_events","type":"User","site_admin":false},"created_at":"2017-04-17T07:08:49Z","updated_at":"2017-04-17T07:08:49Z","body":"You can look at the function [setup_logging](https://github.com/celery/kombu/blob/master/kombu/utils/debug.py#L14) on setting the log level to DEBUG.\r\n\r\nIn order to change the log format you will need to modify the log handler to use a Formatter class with your pattern, see this [StackOverflow answer](http://stackoverflow.com/a/6888270/920374)."}}
{"actor":{"display_login":"georgepsarakis"}}