{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/1355","repository_url":"https://api.github.com/repos/Azure/service-fabric-issues","labels_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/1355/labels{/name}","comments_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/1355/comments","events_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/1355/events","html_url":"https://github.com/Azure/service-fabric-issues/issues/1355","id":380599417,"node_id":"MDU6SXNzdWUzODA1OTk0MTc=","number":1355,"title":"Standard Output Console Redirection to a specified file","user":{"login":"code-surf-er","id":21043807,"node_id":"MDQ6VXNlcjIxMDQzODA3","avatar_url":"https://avatars3.githubusercontent.com/u/21043807?v=4","gravatar_id":"","url":"https://api.github.com/users/code-surf-er","html_url":"https://github.com/code-surf-er","followers_url":"https://api.github.com/users/code-surf-er/followers","following_url":"https://api.github.com/users/code-surf-er/following{/other_user}","gists_url":"https://api.github.com/users/code-surf-er/gists{/gist_id}","starred_url":"https://api.github.com/users/code-surf-er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-surf-er/subscriptions","organizations_url":"https://api.github.com/users/code-surf-er/orgs","repos_url":"https://api.github.com/users/code-surf-er/repos","events_url":"https://api.github.com/users/code-surf-er/events{/privacy}","received_events_url":"https://api.github.com/users/code-surf-er/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mani-ramaswamy","id":11319982,"node_id":"MDQ6VXNlcjExMzE5OTgy","avatar_url":"https://avatars2.githubusercontent.com/u/11319982?v=4","gravatar_id":"","url":"https://api.github.com/users/mani-ramaswamy","html_url":"https://github.com/mani-ramaswamy","followers_url":"https://api.github.com/users/mani-ramaswamy/followers","following_url":"https://api.github.com/users/mani-ramaswamy/following{/other_user}","gists_url":"https://api.github.com/users/mani-ramaswamy/gists{/gist_id}","starred_url":"https://api.github.com/users/mani-ramaswamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mani-ramaswamy/subscriptions","organizations_url":"https://api.github.com/users/mani-ramaswamy/orgs","repos_url":"https://api.github.com/users/mani-ramaswamy/repos","events_url":"https://api.github.com/users/mani-ramaswamy/events{/privacy}","received_events_url":"https://api.github.com/users/mani-ramaswamy/received_events","type":"User","site_admin":false},"assignees":[{"login":"mani-ramaswamy","id":11319982,"node_id":"MDQ6VXNlcjExMzE5OTgy","avatar_url":"https://avatars2.githubusercontent.com/u/11319982?v=4","gravatar_id":"","url":"https://api.github.com/users/mani-ramaswamy","html_url":"https://github.com/mani-ramaswamy","followers_url":"https://api.github.com/users/mani-ramaswamy/followers","following_url":"https://api.github.com/users/mani-ramaswamy/following{/other_user}","gists_url":"https://api.github.com/users/mani-ramaswamy/gists{/gist_id}","starred_url":"https://api.github.com/users/mani-ramaswamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mani-ramaswamy/subscriptions","organizations_url":"https://api.github.com/users/mani-ramaswamy/orgs","repos_url":"https://api.github.com/users/mani-ramaswamy/repos","events_url":"https://api.github.com/users/mani-ramaswamy/events{/privacy}","received_events_url":"https://api.github.com/users/mani-ramaswamy/received_events","type":"User","site_admin":false},{"login":"harahma","id":19154858,"node_id":"MDQ6VXNlcjE5MTU0ODU4","avatar_url":"https://avatars0.githubusercontent.com/u/19154858?v=4","gravatar_id":"","url":"https://api.github.com/users/harahma","html_url":"https://github.com/harahma","followers_url":"https://api.github.com/users/harahma/followers","following_url":"https://api.github.com/users/harahma/following{/other_user}","gists_url":"https://api.github.com/users/harahma/gists{/gist_id}","starred_url":"https://api.github.com/users/harahma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harahma/subscriptions","organizations_url":"https://api.github.com/users/harahma/orgs","repos_url":"https://api.github.com/users/harahma/repos","events_url":"https://api.github.com/users/harahma/events{/privacy}","received_events_url":"https://api.github.com/users/harahma/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-14T09:07:32Z","updated_at":"2018-11-21T22:19:13Z","closed_at":null,"author_association":"NONE","body":"Is it possible to redirect standard output to a specified file in a folder e.g. C:\\Logs\\ ? It works with ConsoleRedirection tag where it stores it in the working folder but when the application crashes Service Fabric cleans up all folders including the log folder which would have contained valuable information.\r\n\r\nNote: I HAVE to use Console.writeline() since I call native code and I am unable to change console.SetOut for Native code from within Service Fabric."},"comment":{"url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/comments/440827736","html_url":"https://github.com/Azure/service-fabric-issues/issues/1355#issuecomment-440827736","issue_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/1355","id":440827736,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDgyNzczNg==","user":{"login":"masnider","id":10968331,"node_id":"MDQ6VXNlcjEwOTY4MzMx","avatar_url":"https://avatars1.githubusercontent.com/u/10968331?v=4","gravatar_id":"","url":"https://api.github.com/users/masnider","html_url":"https://github.com/masnider","followers_url":"https://api.github.com/users/masnider/followers","following_url":"https://api.github.com/users/masnider/following{/other_user}","gists_url":"https://api.github.com/users/masnider/gists{/gist_id}","starred_url":"https://api.github.com/users/masnider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masnider/subscriptions","organizations_url":"https://api.github.com/users/masnider/orgs","repos_url":"https://api.github.com/users/masnider/repos","events_url":"https://api.github.com/users/masnider/events{/privacy}","received_events_url":"https://api.github.com/users/masnider/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T22:19:13Z","updated_at":"2018-11-21T22:19:13Z","author_association":"NONE","body":"I don't think that we have a way to direct the console output elsewhere, because SF doesn't know what places the service has access to write to. Is that other native code you call your own, or do you have access to it?\r\n\r\n> when the application crashes Service Fabric cleans up all folders including the log folder\r\n\r\nHm, Service Fabric doesnt generally clean up the application's working directories aggressively, so I'm surprised that the file is getting cleaned up that quickly. Can you show us where you're looking and what you see when the app is running and then it disappearing?\r\n\r\n> I am unable to change console.SetOut for Native code from within Service Fabric.\r\n\r\nService Fabric doesn't control what type of code you run. Do you have a mechanism for redirecting that works for a general console project or exe that doesn't work when you have SF launch that same exe? Something like [this](https://stackoverflow.com/questions/1412288/suppress-3rd-party-library-console-output)? If so we can try to figure out why that doesn't work for you when you host via SF. \r\n\r\n"}}
{"actor":{"display_login":"masnider"}}