{"action":"created","issue":{"url":"https://api.github.com/repos/gabime/spdlog/issues/69","labels_url":"https://api.github.com/repos/gabime/spdlog/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/gabime/spdlog/issues/69/comments","events_url":"https://api.github.com/repos/gabime/spdlog/issues/69/events","html_url":"https://github.com/gabime/spdlog/issues/69","id":64222657,"number":69,"title":"Document loggers with multiple sinks","user":{"login":"gnzlbg","id":904614,"avatar_url":"https://avatars.githubusercontent.com/u/904614?v=3","gravatar_id":"","url":"https://api.github.com/users/gnzlbg","html_url":"https://github.com/gnzlbg","followers_url":"https://api.github.com/users/gnzlbg/followers","following_url":"https://api.github.com/users/gnzlbg/following{/other_user}","gists_url":"https://api.github.com/users/gnzlbg/gists{/gist_id}","starred_url":"https://api.github.com/users/gnzlbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnzlbg/subscriptions","organizations_url":"https://api.github.com/users/gnzlbg/orgs","repos_url":"https://api.github.com/users/gnzlbg/repos","events_url":"https://api.github.com/users/gnzlbg/events{/privacy}","received_events_url":"https://api.github.com/users/gnzlbg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-25T09:13:27Z","updated_at":"2015-03-25T09:23:42Z","closed_at":null,"body":"E.g. I would like to have a file logger, but that at compile-time/run-time would also display the output to the screen. I can achieve this by wrapping two loggers. But I could also do this by having a single logger with 2 sinks and setting the level to the console sink to `on`/`off` (i.e. having a different level per sink in the logger with multiple sinks).  \r\n\r\nI think wrapping two different loggers is better, but without documentation about loggers with multiple sinks it is hard to know what is the best way to achieve what I want to do."},"comment":{"url":"https://api.github.com/repos/gabime/spdlog/issues/comments/85950531","html_url":"https://github.com/gabime/spdlog/issues/69#issuecomment-85950531","issue_url":"https://api.github.com/repos/gabime/spdlog/issues/69","id":85950531,"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":"2015-03-25T09:23:42Z","updated_at":"2015-03-25T09:23:42Z","body":"Multiple sinks is the intended use for such cases. That's reason for this feature in the first place..\r\n"}}