{"action":"created","comment":{"url":"https://api.github.com/repos/laravel/lumen-framework/pulls/comments/40181698","id":40181698,"diff_hunk":"@@ -640,7 +640,9 @@ protected function registerLogBindings()\n      */\n     protected function getMonologHandler()\n     {\n-        return (new StreamHandler(storage_path('logs/lumen.log'), Logger::DEBUG))\n+        $logPath = env('APP_LOG_PATH', storage_path('logs/lumen.log'));","path":"src/Application.php","position":5,"original_position":5,"commit_id":"3232fe0c08c8d0ba0601d83372a5bb5d4a46dc36","original_commit_id":"3232fe0c08c8d0ba0601d83372a5bb5d4a46dc36","user":{"login":"MarcFRICOU","id":5627371,"avatar_url":"https://avatars.githubusercontent.com/u/5627371?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcFRICOU","html_url":"https://github.com/MarcFRICOU","followers_url":"https://api.github.com/users/MarcFRICOU/followers","following_url":"https://api.github.com/users/MarcFRICOU/following{/other_user}","gists_url":"https://api.github.com/users/MarcFRICOU/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcFRICOU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcFRICOU/subscriptions","organizations_url":"https://api.github.com/users/MarcFRICOU/orgs","repos_url":"https://api.github.com/users/MarcFRICOU/repos","events_url":"https://api.github.com/users/MarcFRICOU/events{/privacy}","received_events_url":"https://api.github.com/users/MarcFRICOU/received_events","type":"User","site_admin":false},"body":"I could add a config file. I do understand I can just extend the Application class, but I thought it can be convenient for others.","created_at":"2015-09-23T08:50:23Z","updated_at":"2015-09-23T08:50:23Z","html_url":"https://github.com/laravel/lumen-framework/pull/250#discussion_r40181698","pull_request_url":"https://api.github.com/repos/laravel/lumen-framework/pulls/250","_links":{"self":{"href":"https://api.github.com/repos/laravel/lumen-framework/pulls/comments/40181698"},"html":{"href":"https://github.com/laravel/lumen-framework/pull/250#discussion_r40181698"},"pull_request":{"href":"https://api.github.com/repos/laravel/lumen-framework/pulls/250"}}},"pull_request":{"url":"https://api.github.com/repos/laravel/lumen-framework/pulls/250","id":45754970,"html_url":"https://github.com/laravel/lumen-framework/pull/250","diff_url":"https://github.com/laravel/lumen-framework/pull/250.diff","patch_url":"https://github.com/laravel/lumen-framework/pull/250.patch","issue_url":"https://api.github.com/repos/laravel/lumen-framework/issues/250","number":250,"state":"closed","locked":false,"title":"Logs : Be abble to change log file path and name","user":{"login":"MarcFRICOU","id":5627371,"avatar_url":"https://avatars.githubusercontent.com/u/5627371?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcFRICOU","html_url":"https://github.com/MarcFRICOU","followers_url":"https://api.github.com/users/MarcFRICOU/followers","following_url":"https://api.github.com/users/MarcFRICOU/following{/other_user}","gists_url":"https://api.github.com/users/MarcFRICOU/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcFRICOU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcFRICOU/subscriptions","organizations_url":"https://api.github.com/users/MarcFRICOU/orgs","repos_url":"https://api.github.com/users/MarcFRICOU/repos","events_url":"https://api.github.com/users/MarcFRICOU/events{/privacy}","received_events_url":"https://api.github.com/users/MarcFRICOU/received_events","type":"User","site_admin":false},"body":"Hi !\r\nI'm using Lumen as a micro service with Docker. I need to be able to write logs to `php://stdout` to facilitate log aggregation between services. I suggest to add an env. var. `APP_LOG_PATH` default to `storage/logs/lumen.log` as it is hardcoded now.","created_at":"2015-09-23T08:40:17Z","updated_at":"2015-09-23T08:50:23Z","closed_at":"2015-09-23T08:45:09Z","merged_at":null,"merge_commit_sha":"4f15640817e89eee7c6bd289a053f4fc679c8c33","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/lumen-framework/pulls/250/commits","review_comments_url":"https://api.github.com/repos/laravel/lumen-framework/pulls/250/comments","review_comment_url":"https://api.github.com/repos/laravel/lumen-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/lumen-framework/issues/250/comments","statuses_url":"https://api.github.com/repos/laravel/lumen-framework/statuses/3232fe0c08c8d0ba0601d83372a5bb5d4a46dc36","head":{"label":"iadvize:5.1","ref":"5.1","sha":"3232fe0c08c8d0ba0601d83372a5bb5d4a46dc36","user":{"login":"iadvize","id":216094,"avatar_url":"https://avatars.githubusercontent.com/u/216094?v=3","gravatar_id":"","url":"https://api.github.com/users/iadvize","html_url":"https://github.com/iadvize","followers_url":"https://api.github.com/users/iadvize/followers","following_url":"https://api.github.com/users/iadvize/following{/other_user}","gists_url":"https://api.github.com/users/iadvize/gists{/gist_id}","starred_url":"https://api.github.com/users/iadvize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iadvize/subscriptions","organizations_url":"https://api.github.com/users/iadvize/orgs","repos_url":"https://api.github.com/users/iadvize/repos","events_url":"https://api.github.com/users/iadvize/events{/privacy}","received_events_url":"https://api.github.com/users/iadvize/received_events","type":"Organization","site_admin":false},"repo":{"id":42986764,"name":"lumen-framework","full_name":"iadvize/lumen-framework","owner":{"login":"iadvize","id":216094,"avatar_url":"https://avatars.githubusercontent.com/u/216094?v=3","gravatar_id":"","url":"https://api.github.com/users/iadvize","html_url":"https://github.com/iadvize","followers_url":"https://api.github.com/users/iadvize/followers","following_url":"https://api.github.com/users/iadvize/following{/other_user}","gists_url":"https://api.github.com/users/iadvize/gists{/gist_id}","starred_url":"https://api.github.com/users/iadvize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iadvize/subscriptions","organizations_url":"https://api.github.com/users/iadvize/orgs","repos_url":"https://api.github.com/users/iadvize/repos","events_url":"https://api.github.com/users/iadvize/events{/privacy}","received_events_url":"https://api.github.com/users/iadvize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iadvize/lumen-framework","description":"Add possibility to customize log path","fork":true,"url":"https://api.github.com/repos/iadvize/lumen-framework","forks_url":"https://api.github.com/repos/iadvize/lumen-framework/forks","keys_url":"https://api.github.com/repos/iadvize/lumen-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iadvize/lumen-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iadvize/lumen-framework/teams","hooks_url":"https://api.github.com/repos/iadvize/lumen-framework/hooks","issue_events_url":"https://api.github.com/repos/iadvize/lumen-framework/issues/events{/number}","events_url":"https://api.github.com/repos/iadvize/lumen-framework/events","assignees_url":"https://api.github.com/repos/iadvize/lumen-framework/assignees{/user}","branches_url":"https://api.github.com/repos/iadvize/lumen-framework/branches{/branch}","tags_url":"https://api.github.com/repos/iadvize/lumen-framework/tags","blobs_url":"https://api.github.com/repos/iadvize/lumen-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iadvize/lumen-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iadvize/lumen-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/iadvize/lumen-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iadvize/lumen-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/iadvize/lumen-framework/languages","stargazers_url":"https://api.github.com/repos/iadvize/lumen-framework/stargazers","contributors_url":"https://api.github.com/repos/iadvize/lumen-framework/contributors","subscribers_url":"https://api.github.com/repos/iadvize/lumen-framework/subscribers","subscription_url":"https://api.github.com/repos/iadvize/lumen-framework/subscription","commits_url":"https://api.github.com/repos/iadvize/lumen-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/iadvize/lumen-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/iadvize/lumen-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/iadvize/lumen-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/iadvize/lumen-framework/contents/{+path}","compare_url":"https://api.github.com/repos/iadvize/lumen-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iadvize/lumen-framework/merges","archive_url":"https://api.github.com/repos/iadvize/lumen-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iadvize/lumen-framework/downloads","issues_url":"https://api.github.com/repos/iadvize/lumen-framework/issues{/number}","pulls_url":"https://api.github.com/repos/iadvize/lumen-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/iadvize/lumen-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/iadvize/lumen-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iadvize/lumen-framework/labels{/name}","releases_url":"https://api.github.com/repos/iadvize/lumen-framework/releases{/id}","created_at":"2015-09-23T07:57:30Z","updated_at":"2015-09-23T08:38:51Z","pushed_at":"2015-09-23T08:44:30Z","git_url":"git://github.com/iadvize/lumen-framework.git","ssh_url":"git@github.com:iadvize/lumen-framework.git","clone_url":"https://github.com/iadvize/lumen-framework.git","svn_url":"https://github.com/iadvize/lumen-framework","homepage":"","size":1084,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"5.1"}},"base":{"label":"laravel:5.1","ref":"5.1","sha":"5a097e86d584084f84697d66989c668c509006ce","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":33903775,"name":"lumen-framework","full_name":"laravel/lumen-framework","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/lumen-framework","description":"","fork":false,"url":"https://api.github.com/repos/laravel/lumen-framework","forks_url":"https://api.github.com/repos/laravel/lumen-framework/forks","keys_url":"https://api.github.com/repos/laravel/lumen-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/lumen-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/lumen-framework/teams","hooks_url":"https://api.github.com/repos/laravel/lumen-framework/hooks","issue_events_url":"https://api.github.com/repos/laravel/lumen-framework/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/lumen-framework/events","assignees_url":"https://api.github.com/repos/laravel/lumen-framework/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/lumen-framework/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/lumen-framework/tags","blobs_url":"https://api.github.com/repos/laravel/lumen-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/lumen-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/lumen-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/lumen-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/lumen-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/lumen-framework/languages","stargazers_url":"https://api.github.com/repos/laravel/lumen-framework/stargazers","contributors_url":"https://api.github.com/repos/laravel/lumen-framework/contributors","subscribers_url":"https://api.github.com/repos/laravel/lumen-framework/subscribers","subscription_url":"https://api.github.com/repos/laravel/lumen-framework/subscription","commits_url":"https://api.github.com/repos/laravel/lumen-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/lumen-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/lumen-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/lumen-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/lumen-framework/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/lumen-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/lumen-framework/merges","archive_url":"https://api.github.com/repos/laravel/lumen-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/lumen-framework/downloads","issues_url":"https://api.github.com/repos/laravel/lumen-framework/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/lumen-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/lumen-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/lumen-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/lumen-framework/labels{/name}","releases_url":"https://api.github.com/repos/laravel/lumen-framework/releases{/id}","created_at":"2015-04-14T01:30:27Z","updated_at":"2015-09-23T00:56:29Z","pushed_at":"2015-09-23T08:44:31Z","git_url":"git://github.com/laravel/lumen-framework.git","ssh_url":"git@github.com:laravel/lumen-framework.git","clone_url":"https://github.com/laravel/lumen-framework.git","svn_url":"https://github.com/laravel/lumen-framework","homepage":null,"size":1084,"stargazers_count":338,"watchers_count":338,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":109,"mirror_url":null,"open_issues_count":6,"forks":109,"open_issues":6,"watchers":338,"default_branch":"5.1"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/lumen-framework/pulls/250"},"html":{"href":"https://github.com/laravel/lumen-framework/pull/250"},"issue":{"href":"https://api.github.com/repos/laravel/lumen-framework/issues/250"},"comments":{"href":"https://api.github.com/repos/laravel/lumen-framework/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/lumen-framework/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/lumen-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/lumen-framework/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/lumen-framework/statuses/3232fe0c08c8d0ba0601d83372a5bb5d4a46dc36"}}}}