{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/26686489","id":26686489,"diff_hunk":"@@ -656,6 +656,11 @@ this driver.\n Default logging driver for Docker. Writes JSON messages to file. `docker logs`\n command is available only for this logging driver\n \n+## Logging driver: syslog\n+\n+Syslog logging driver for Docker. Writes JSON messages to syslog. `docker logs`","path":"docs/sources/reference/run.md","position":6,"original_position":6,"commit_id":"49aea7a7c7e89248253ecc7151628c055682cfc2","original_commit_id":"49aea7a7c7e89248253ecc7151628c055682cfc2","user":{"login":"wlan0","id":1050521,"avatar_url":"https://avatars.githubusercontent.com/u/1050521?v=3","gravatar_id":"","url":"https://api.github.com/users/wlan0","html_url":"https://github.com/wlan0","followers_url":"https://api.github.com/users/wlan0/followers","following_url":"https://api.github.com/users/wlan0/following{/other_user}","gists_url":"https://api.github.com/users/wlan0/gists{/gist_id}","starred_url":"https://api.github.com/users/wlan0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlan0/subscriptions","organizations_url":"https://api.github.com/users/wlan0/orgs","repos_url":"https://api.github.com/users/wlan0/repos","events_url":"https://api.github.com/users/wlan0/events{/privacy}","received_events_url":"https://api.github.com/users/wlan0/received_events","type":"User","site_admin":false},"body":"I initially started off with a JSON logger and then changed it. I'll fix the docs","created_at":"2015-03-18T17:31:08Z","updated_at":"2015-03-18T17:31:08Z","html_url":"https://github.com/docker/docker/pull/11458#discussion_r26686489","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/11458","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/26686489"},"html":{"href":"https://github.com/docker/docker/pull/11458#discussion_r26686489"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/11458"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/11458","id":31406107,"html_url":"https://github.com/docker/docker/pull/11458","diff_url":"https://github.com/docker/docker/pull/11458.diff","patch_url":"https://github.com/docker/docker/pull/11458.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/11458","number":11458,"state":"open","locked":false,"title":"Add syslog logging driver","user":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"body":"This PR adds support for logging to syslog from Docker by using the go built in syslog package.  This code uses the existing logging driver framework added to Docker 1.6.  An example output to syslog looks like\r\n\r\n```\r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:                 _._                                                  \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:            _.-``__ ''-._                                             \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:       _.-``    `.  `_.  ''-._           Redis 2.8.19 (00000000/0) 64 bit\r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:   .-`` .-```.  ```\\/    _.,_ ''-._                                   \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:  (    '      ,       .-`  | `,    )     Running in stand alone mode\r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379\r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:  |    `-._   `._    /     _.-'    |     PID: 1\r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:   `-._    `-._  `-./  _.-'    _.-'                                   \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:  |`-._`-._    `-.__.-'    _.-'_.-'|                                  \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:  |    `-._`-._        _.-'_.-'    |           http://redis.io        \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:   `-._    `-._`-.__.-'_.-'    _.-'                                   \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:  |`-._`-._    `-.__.-'    _.-'_.-'|                                  \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:  |    `-._`-._        _.-'_.-'    |                                  \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:   `-._    `-._`-.__.-'_.-'    _.-'                                   \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:       `-._    `-.__.-'    _.-'                                       \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:           `-._        _.-'                                           \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b:               `-.__.-'                                               \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b: \r\nMar 18 00:36:04 inotmac docker[28485]: 94ce4ded774b: [1] 18 Mar 07:36:04.448 # Server started, Redis version 2.8.19\r\n```\r\n\r\nNOTE: Credit goes to @wlan0 for the development of this, I'm just submitting the PR","created_at":"2015-03-18T07:39:01Z","updated_at":"2015-03-18T17:31:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10fa1e3701c12d1cfea1c1d47f2accd534637932","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker/pulls/11458/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/11458/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/11458/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/49aea7a7c7e89248253ecc7151628c055682cfc2","head":{"label":"ibuildthecloud:syslog","ref":"syslog","sha":"49aea7a7c7e89248253ecc7151628c055682cfc2","user":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"repo":{"id":16563024,"name":"docker","full_name":"ibuildthecloud/docker","owner":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ibuildthecloud/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/ibuildthecloud/docker","forks_url":"https://api.github.com/repos/ibuildthecloud/docker/forks","keys_url":"https://api.github.com/repos/ibuildthecloud/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ibuildthecloud/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ibuildthecloud/docker/teams","hooks_url":"https://api.github.com/repos/ibuildthecloud/docker/hooks","issue_events_url":"https://api.github.com/repos/ibuildthecloud/docker/issues/events{/number}","events_url":"https://api.github.com/repos/ibuildthecloud/docker/events","assignees_url":"https://api.github.com/repos/ibuildthecloud/docker/assignees{/user}","branches_url":"https://api.github.com/repos/ibuildthecloud/docker/branches{/branch}","tags_url":"https://api.github.com/repos/ibuildthecloud/docker/tags","blobs_url":"https://api.github.com/repos/ibuildthecloud/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ibuildthecloud/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ibuildthecloud/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/ibuildthecloud/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ibuildthecloud/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/ibuildthecloud/docker/languages","stargazers_url":"https://api.github.com/repos/ibuildthecloud/docker/stargazers","contributors_url":"https://api.github.com/repos/ibuildthecloud/docker/contributors","subscribers_url":"https://api.github.com/repos/ibuildthecloud/docker/subscribers","subscription_url":"https://api.github.com/repos/ibuildthecloud/docker/subscription","commits_url":"https://api.github.com/repos/ibuildthecloud/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/ibuildthecloud/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/ibuildthecloud/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/ibuildthecloud/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/ibuildthecloud/docker/contents/{+path}","compare_url":"https://api.github.com/repos/ibuildthecloud/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ibuildthecloud/docker/merges","archive_url":"https://api.github.com/repos/ibuildthecloud/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ibuildthecloud/docker/downloads","issues_url":"https://api.github.com/repos/ibuildthecloud/docker/issues{/number}","pulls_url":"https://api.github.com/repos/ibuildthecloud/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/ibuildthecloud/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/ibuildthecloud/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ibuildthecloud/docker/labels{/name}","releases_url":"https://api.github.com/repos/ibuildthecloud/docker/releases{/id}","created_at":"2014-02-05T23:52:41Z","updated_at":"2014-07-24T21:22:38Z","pushed_at":"2015-03-18T08:02:36Z","git_url":"git://github.com/ibuildthecloud/docker.git","ssh_url":"git@github.com:ibuildthecloud/docker.git","clone_url":"https://github.com/ibuildthecloud/docker.git","svn_url":"https://github.com/ibuildthecloud/docker","homepage":"http://www.docker.io","size":44893,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"cf071bb9620cc36ab446c467a332a7c287856726","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-03-18T16:21:41Z","pushed_at":"2015-03-18T15:46:53Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":153334,"stargazers_count":19925,"watchers_count":19925,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4176,"mirror_url":null,"open_issues_count":804,"forks":4176,"open_issues":804,"watchers":19925,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/11458"},"html":{"href":"https://github.com/docker/docker/pull/11458"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/11458"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/11458/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/11458/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/11458/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/49aea7a7c7e89248253ecc7151628c055682cfc2"}}}}