{"action":"closed","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/1044","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/1044/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/1044/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/1044/events","html_url":"https://github.com/mholt/caddy/issues/1044","id":171845905,"number":1044,"title":"Multiple log outputs","user":{"login":"itskenny0","id":16098639,"avatar_url":"https://avatars.githubusercontent.com/u/16098639?v=3","gravatar_id":"","url":"https://api.github.com/users/itskenny0","html_url":"https://github.com/itskenny0","followers_url":"https://api.github.com/users/itskenny0/followers","following_url":"https://api.github.com/users/itskenny0/following{/other_user}","gists_url":"https://api.github.com/users/itskenny0/gists{/gist_id}","starred_url":"https://api.github.com/users/itskenny0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itskenny0/subscriptions","organizations_url":"https://api.github.com/users/itskenny0/orgs","repos_url":"https://api.github.com/users/itskenny0/repos","events_url":"https://api.github.com/users/itskenny0/events{/privacy}","received_events_url":"https://api.github.com/users/itskenny0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mholt/caddy/labels/feature%20request","name":"feature request","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-18T08:32:14Z","updated_at":"2016-08-24T04:55:51Z","closed_at":"2016-08-24T04:55:51Z","body":"#### 1. What version of Caddy are you running (`caddy -version`)?\r\n```\r\nCaddy 0.9.0 (+745ae6f Wed Aug 17 16:14:33 UTC 2016)\r\n 1 file changed, 2 insertions(+)\r\ncaddy/caddymain/run.go\r\n```\r\n\r\n#### 2. What are you trying to do?\r\nUse multiple log output directives.\r\n\r\n#### 3. What is your entire Caddyfile?\r\n```\r\ndomain.com {\r\n        tls letsencrypt@kenny.cat\r\n\r\n        browse\r\n        root /www/domain.com/htdocs/\r\n        gzip\r\n        log / /www/domain.com/access.log \"{remote} {when} {method} {uri} {proto} {status} {size} {>User-Agent} {latency}\"\r\n        log / /www/domain.com/request.log \"{request_body}\"\r\n        log / /www/domain.com/headers.log \"{request}\"\r\n        errors /www/domain.com/error.log\r\n        fastcgi / /var/run/php5-fpm.sock php\r\n}\r\n```\r\n\r\n#### 4. How did you run Caddy (give the full command and describe the execution environment)?\r\nUsing supervisord with this config:\r\n```\r\n[program:caddy]\r\ncommand=/opt/caddy/caddy\r\ndirectory=/opt/caddy\r\nautostart=true\r\nautorestart=true\r\nstdout_logfile=/var/log/caddy.log\r\nredirect_stderr=true\r\nuser=www-data\r\n```\r\n\r\n#### 5. What did you expect to see?\r\nThe different log files being created and logging be performed to them with the respective templates.\r\n\r\n#### 6. What did you see instead (give full error messages and/or log)?\r\nThe different log files are created, but output is only logged to one of them.\r\n\r\n#### 7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?\r\nUse the above Caddyfile.\r\n"}}
{"actor":{"display_login":"mholt"}}