{"action":"created","issue":{"url":"https://api.github.com/repos/gabime/spdlog/issues/286","repository_url":"https://api.github.com/repos/gabime/spdlog","labels_url":"https://api.github.com/repos/gabime/spdlog/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/gabime/spdlog/issues/286/comments","events_url":"https://api.github.com/repos/gabime/spdlog/issues/286/events","html_url":"https://github.com/gabime/spdlog/issues/286","id":178241734,"number":286,"title":"Exposing logger sinks","user":{"login":"dhalinar","id":22336642,"avatar_url":"https://avatars.githubusercontent.com/u/22336642?v=3","gravatar_id":"","url":"https://api.github.com/users/dhalinar","html_url":"https://github.com/dhalinar","followers_url":"https://api.github.com/users/dhalinar/followers","following_url":"https://api.github.com/users/dhalinar/following{/other_user}","gists_url":"https://api.github.com/users/dhalinar/gists{/gist_id}","starred_url":"https://api.github.com/users/dhalinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhalinar/subscriptions","organizations_url":"https://api.github.com/users/dhalinar/orgs","repos_url":"https://api.github.com/users/dhalinar/repos","events_url":"https://api.github.com/users/dhalinar/events{/privacy}","received_events_url":"https://api.github.com/users/dhalinar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gabime/spdlog/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-21T04:12:31Z","updated_at":"2016-10-02T11:08:40Z","closed_at":"2016-10-02T11:08:40Z","body":"Are there any (immediately obvious) problems exposing a logger's sinks, with say a 'get_sinks()' function?\r\n\r\nI'm imaging some object Foo with logger \"A\" and a stdout sink.\r\nThen some Bar wants to share Foo's logger's sink but with a logger named \"B\".\r\n\r\n```\r\nFoo foo;\r\nauto fooLogger = spdlog::stdout_logger_st(\"foo logger\");\r\nfoo.setLogger(fooLogger);\r\n\r\nBar bar;\r\nstd::vector<spdlog::sink_ptr> sinks = fooLogger.get_sinks();\r\nauto barLogger = spdLog::create(\"bar logger\", sinks.begin(), sinks.end());\r\nbar.setLogger(barLogger);\r\n```\r\n\r\nThe example is a bit contrived, but what I'm going for is having different 'logger' names in a shared sink.\r\n"},"comment":{"url":"https://api.github.com/repos/gabime/spdlog/issues/comments/250965968","html_url":"https://github.com/gabime/spdlog/issues/286#issuecomment-250965968","issue_url":"https://api.github.com/repos/gabime/spdlog/issues/286","id":250965968,"user":{"login":"gabime","id":6052198,"avatar_url":"https://avatars.githubusercontent.com/u/6052198?v=3","gravatar_id":"","url":"https://api.github.com/users/gabime","html_url":"https://github.com/gabime","followers_url":"https://api.github.com/users/gabime/followers","following_url":"https://api.github.com/users/gabime/following{/other_user}","gists_url":"https://api.github.com/users/gabime/gists{/gist_id}","starred_url":"https://api.github.com/users/gabime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabime/subscriptions","organizations_url":"https://api.github.com/users/gabime/orgs","repos_url":"https://api.github.com/users/gabime/repos","events_url":"https://api.github.com/users/gabime/events{/privacy}","received_events_url":"https://api.github.com/users/gabime/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T11:08:39Z","updated_at":"2016-10-02T11:08:39Z","body":"merged pull #289"}}
{"actor":{"display_login":"gabime"}}