{"action":"opened","issue":{"url":"https://api.github.com/repos/ptaoussanis/timbre/issues/213","repository_url":"https://api.github.com/repos/ptaoussanis/timbre","labels_url":"https://api.github.com/repos/ptaoussanis/timbre/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/ptaoussanis/timbre/issues/213/comments","events_url":"https://api.github.com/repos/ptaoussanis/timbre/issues/213/events","html_url":"https://github.com/ptaoussanis/timbre/issues/213","id":198017533,"number":213,"title":"Docs unclear on how to log *only* to file","user":{"login":"HakimCassimallyBBC","id":13103252,"avatar_url":"https://avatars.githubusercontent.com/u/13103252?v=3","gravatar_id":"","url":"https://api.github.com/users/HakimCassimallyBBC","html_url":"https://github.com/HakimCassimallyBBC","followers_url":"https://api.github.com/users/HakimCassimallyBBC/followers","following_url":"https://api.github.com/users/HakimCassimallyBBC/following{/other_user}","gists_url":"https://api.github.com/users/HakimCassimallyBBC/gists{/gist_id}","starred_url":"https://api.github.com/users/HakimCassimallyBBC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HakimCassimallyBBC/subscriptions","organizations_url":"https://api.github.com/users/HakimCassimallyBBC/orgs","repos_url":"https://api.github.com/users/HakimCassimallyBBC/repos","events_url":"https://api.github.com/users/HakimCassimallyBBC/events{/privacy}","received_events_url":"https://api.github.com/users/HakimCassimallyBBC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-29T14:42:30Z","updated_at":"2016-12-29T14:42:30Z","closed_at":null,"body":"The docs suggest that to add a file appender, you should do:\r\n\r\n```\r\n(timbre/merge-config!\r\n  {:appenders {:spit (appenders/spit-appender {:fname \"/path/my-file.log\"})}})\r\n```\r\n\r\nHowever this appears to *add* the file appender to the existing stdout one.  I couldn't find an obvious way to do this from reading the docs - apologies if I've missed it, but in that case, it could perhaps do with some clarification.  It looks like the following will work:\r\n\r\n```\r\n(log/set-config! (merge log/*config*\r\n  {:appenders {:spit (appenders/spit-appender {:fname \"/path/my-file.log\"})}}))\r\n```\r\n\r\nBut of course this is then grubbing around in the undocumented internals of timbre.  Is there a best practice I should be using instead?"}}
{"actor":{"display_login":"HakimCassimallyBBC"}}