{"action":"created","issue":{"url":"https://api.github.com/repos/celery/celery/issues/2934","labels_url":"https://api.github.com/repos/celery/celery/issues/2934/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/2934/comments","events_url":"https://api.github.com/repos/celery/celery/issues/2934/events","html_url":"https://github.com/celery/celery/issues/2934","id":119006165,"number":2934,"title":"logging to journald","user":{"login":"afterdesign","id":672767,"avatar_url":"https://avatars.githubusercontent.com/u/672767?v=3","gravatar_id":"","url":"https://api.github.com/users/afterdesign","html_url":"https://github.com/afterdesign","followers_url":"https://api.github.com/users/afterdesign/followers","following_url":"https://api.github.com/users/afterdesign/following{/other_user}","gists_url":"https://api.github.com/users/afterdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/afterdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afterdesign/subscriptions","organizations_url":"https://api.github.com/users/afterdesign/orgs","repos_url":"https://api.github.com/users/afterdesign/repos","events_url":"https://api.github.com/users/afterdesign/events{/privacy}","received_events_url":"https://api.github.com/users/afterdesign/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T09:41:36Z","updated_at":"2015-11-27T22:01:20Z","closed_at":"2015-11-27T22:01:20Z","body":"Hi.\r\n\r\nSo I'm trying to make celery work with systemd. I'm especially interested with logging everything into journald which can get logs from stdout/stderr and it's storing informations in binary format.\r\n\r\nSo the main problem is that I'm unable to get _all_ the loggers (and I see that there are a lot of them) within celery/kombu and to make them use my own logger (using python systemd logging library).\r\n\r\nI don't want to use log file per worker with ```--logfile``` method. I even tried not to use ```celery multi``` and go with simple for and run ```celery worker -D``` but after detaching all of the logs are silenced up and without adding log file there is no option to get informations what is happening.\r\n\r\nI tried to grab all the loggers and make them do what I want but this is almost impossible IMVHO.\r\nIs there a way to make celery workers to write everything to syslog or to stdout/stderr ?"},"comment":{"url":"https://api.github.com/repos/celery/celery/issues/comments/160218261","html_url":"https://github.com/celery/celery/issues/2934#issuecomment-160218261","issue_url":"https://api.github.com/repos/celery/celery/issues/2934","id":160218261,"user":{"login":"ask","id":1558,"avatar_url":"https://avatars.githubusercontent.com/u/1558?v=3","gravatar_id":"","url":"https://api.github.com/users/ask","html_url":"https://github.com/ask","followers_url":"https://api.github.com/users/ask/followers","following_url":"https://api.github.com/users/ask/following{/other_user}","gists_url":"https://api.github.com/users/ask/gists{/gist_id}","starred_url":"https://api.github.com/users/ask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ask/subscriptions","organizations_url":"https://api.github.com/users/ask/orgs","repos_url":"https://api.github.com/users/ask/repos","events_url":"https://api.github.com/users/ask/events{/privacy}","received_events_url":"https://api.github.com/users/ask/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T22:01:20Z","updated_at":"2015-11-27T22:01:20Z","body":"A critical part of daemonization is closing stdin,stdout,stderr to detach from the controlling terminal.\r\nThere's no way around that, so if you want to keep stdout/stderr you will need to use systemd's mechanism for detaching (which is recommended over -D anway)"}}