{"action":"created","issue":{"url":"https://api.github.com/repos/basho/lager/issues/286","labels_url":"https://api.github.com/repos/basho/lager/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/basho/lager/issues/286/comments","events_url":"https://api.github.com/repos/basho/lager/issues/286/events","html_url":"https://github.com/basho/lager/issues/286","id":101336971,"number":286,"title":"Dynamic sinks [JIRA: RIAK-2094]","user":{"login":"walrusVision","id":5759600,"avatar_url":"https://avatars.githubusercontent.com/u/5759600?v=3","gravatar_id":"","url":"https://api.github.com/users/walrusVision","html_url":"https://github.com/walrusVision","followers_url":"https://api.github.com/users/walrusVision/followers","following_url":"https://api.github.com/users/walrusVision/following{/other_user}","gists_url":"https://api.github.com/users/walrusVision/gists{/gist_id}","starred_url":"https://api.github.com/users/walrusVision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walrusVision/subscriptions","organizations_url":"https://api.github.com/users/walrusVision/orgs","repos_url":"https://api.github.com/users/walrusVision/repos","events_url":"https://api.github.com/users/walrusVision/events{/privacy}","received_events_url":"https://api.github.com/users/walrusVision/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/basho/lager/labels/JIRA:%20To%20Do","name":"JIRA: To Do","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-17T04:32:09Z","updated_at":"2015-08-17T20:14:16Z","closed_at":null,"body":"Currently all the extra sinks get configured on lager:start() and it pulls this information from the env via the config. I'd like to be able to configure sinks a bit more dynamically. E.g if someone starts an app and hasn't provided a config file then my app could configure the sink itself with some sensible defaults. Similar to how lager_app has a default configuration."},"comment":{"url":"https://api.github.com/repos/basho/lager/issues/comments/131947055","html_url":"https://github.com/basho/lager/issues/286#issuecomment-131947055","issue_url":"https://api.github.com/repos/basho/lager/issues/286","id":131947055,"user":{"login":"walrusVision","id":5759600,"avatar_url":"https://avatars.githubusercontent.com/u/5759600?v=3","gravatar_id":"","url":"https://api.github.com/users/walrusVision","html_url":"https://github.com/walrusVision","followers_url":"https://api.github.com/users/walrusVision/followers","following_url":"https://api.github.com/users/walrusVision/following{/other_user}","gists_url":"https://api.github.com/users/walrusVision/gists{/gist_id}","starred_url":"https://api.github.com/users/walrusVision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walrusVision/subscriptions","organizations_url":"https://api.github.com/users/walrusVision/orgs","repos_url":"https://api.github.com/users/walrusVision/repos","events_url":"https://api.github.com/users/walrusVision/events{/privacy}","received_events_url":"https://api.github.com/users/walrusVision/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T20:14:16Z","updated_at":"2015-08-17T20:14:16Z","body":"Hello mrallen1. I have my apps parse transformed with sink names as they have the appropriate rebar settings. I am thinking about the case where the apps have been complied with parse transform, but a config defining the extra_sinks section hasn't been supplied so you get the {error,{sink_not_configured, Sink}} response when you try to log.\r\n\r\nIf I'm following this code correctly\r\nhttps://github.com/basho/lager/blob/3.0.1/src/lager_app.erl#L214\r\nhttps://github.com/basho/lager/blob/3.0.1/src/lager_app.erl#L167\r\n\r\nThen at the moment lager just pulls the settings for the sinks from the environment config. If I have my parse_transform applied to the code already, would it then matter if the sink was configured on start, or at some latter point e.g. have my parse_transformed app call ```configure_sink\\2``` it self with some settings?"}}