{"action":"created","issue":{"url":"https://api.github.com/repos/serilog/serilog-sinks-rollingfile/issues/9","repository_url":"https://api.github.com/repos/serilog/serilog-sinks-rollingfile","labels_url":"https://api.github.com/repos/serilog/serilog-sinks-rollingfile/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/serilog/serilog-sinks-rollingfile/issues/9/comments","events_url":"https://api.github.com/repos/serilog/serilog-sinks-rollingfile/issues/9/events","html_url":"https://github.com/serilog/serilog-sinks-rollingfile/issues/9","id":164344062,"node_id":"MDU6SXNzdWUxNjQzNDQwNjI=","number":9,"title":"New File Is Being Created For Every Log Entry","user":{"login":"sunmorgus","id":2287216,"node_id":"MDQ6VXNlcjIyODcyMTY=","avatar_url":"https://avatars2.githubusercontent.com/u/2287216?v=4","gravatar_id":"","url":"https://api.github.com/users/sunmorgus","html_url":"https://github.com/sunmorgus","followers_url":"https://api.github.com/users/sunmorgus/followers","following_url":"https://api.github.com/users/sunmorgus/following{/other_user}","gists_url":"https://api.github.com/users/sunmorgus/gists{/gist_id}","starred_url":"https://api.github.com/users/sunmorgus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunmorgus/subscriptions","organizations_url":"https://api.github.com/users/sunmorgus/orgs","repos_url":"https://api.github.com/users/sunmorgus/repos","events_url":"https://api.github.com/users/sunmorgus/events{/privacy}","received_events_url":"https://api.github.com/users/sunmorgus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-07T15:52:20Z","updated_at":"2018-10-18T12:42:35Z","closed_at":"2016-07-10T22:42:23Z","author_association":"NONE","body":"I'm using the following to initialize a rolling log file in the constructor of a web api controller:\n\n`            var path = HttpContext.Current.Server.MapPath(\"logs\\log-{Date}.txt\");\n\n```\n        var log = new LoggerConfiguration()\n            .WriteTo.RollingFile(path)\n            .CreateLogger();\n\n        Log.Logger = log;`\n```\n\nThis is working; however, rather than append new entries to the existing date, it's creating a new log file with the same name and \"_001\", \"_002\", \"_003\", etc appended to the end. Is there another way I should be initializing the rollingfile sink so that it only creates one file per day?\n"},"comment":{"url":"https://api.github.com/repos/serilog/serilog-sinks-rollingfile/issues/comments/430993520","html_url":"https://github.com/serilog/serilog-sinks-rollingfile/issues/9#issuecomment-430993520","issue_url":"https://api.github.com/repos/serilog/serilog-sinks-rollingfile/issues/9","id":430993520,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDk5MzUyMA==","user":{"login":"ranjithjains","id":44264047,"node_id":"MDQ6VXNlcjQ0MjY0MDQ3","avatar_url":"https://avatars2.githubusercontent.com/u/44264047?v=4","gravatar_id":"","url":"https://api.github.com/users/ranjithjains","html_url":"https://github.com/ranjithjains","followers_url":"https://api.github.com/users/ranjithjains/followers","following_url":"https://api.github.com/users/ranjithjains/following{/other_user}","gists_url":"https://api.github.com/users/ranjithjains/gists{/gist_id}","starred_url":"https://api.github.com/users/ranjithjains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranjithjains/subscriptions","organizations_url":"https://api.github.com/users/ranjithjains/orgs","repos_url":"https://api.github.com/users/ranjithjains/repos","events_url":"https://api.github.com/users/ranjithjains/events{/privacy}","received_events_url":"https://api.github.com/users/ranjithjains/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T12:42:35Z","updated_at":"2018-10-18T12:42:35Z","author_association":"NONE","body":"@nblumhardt What if i want to log to multiple files. Some logs to one file and rest in another file. Is is possible using only one logger instance..?"}}
{"actor":{"display_login":"ranjithjains"}}