{"action":"opened","issue":{"url":"https://api.github.com/repos/serokell/log-warper/issues/61","repository_url":"https://api.github.com/repos/serokell/log-warper","labels_url":"https://api.github.com/repos/serokell/log-warper/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/serokell/log-warper/issues/61/comments","events_url":"https://api.github.com/repos/serokell/log-warper/issues/61/events","html_url":"https://github.com/serokell/log-warper/issues/61","id":278195210,"number":61,"title":"Make log running interface simpler","user":{"login":"ChShersh","id":4276606,"avatar_url":"https://avatars0.githubusercontent.com/u/4276606?v=4","gravatar_id":"","url":"https://api.github.com/users/ChShersh","html_url":"https://github.com/ChShersh","followers_url":"https://api.github.com/users/ChShersh/followers","following_url":"https://api.github.com/users/ChShersh/following{/other_user}","gists_url":"https://api.github.com/users/ChShersh/gists{/gist_id}","starred_url":"https://api.github.com/users/ChShersh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChShersh/subscriptions","organizations_url":"https://api.github.com/users/ChShersh/orgs","repos_url":"https://api.github.com/users/ChShersh/repos","events_url":"https://api.github.com/users/ChShersh/events{/privacy}","received_events_url":"https://api.github.com/users/ChShersh/received_events","type":"User","site_admin":false},"labels":[{"id":483734706,"url":"https://api.github.com/repos/serokell/log-warper/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":752700569,"url":"https://api.github.com/repos/serokell/log-warper/labels/yaml-configuration","name":"yaml-configuration","color":"931946","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-30T16:58:16Z","updated_at":"2017-11-30T16:58:16Z","closed_at":null,"author_association":"MEMBER","body":"It would be good to have simpler interface for running logging. For example, this default running from tutorial can be done in separate function like `runLoggingWithFile`:\r\n\r\n```haskell\r\nmainWithLogging :: IO ()\r\nmainWithLogging = do\r\n    buildAndSetupYamlLogging productionB \"examples/how-to-log-config.yaml\"\r\n    usingLoggerName \"new-logger\" inputLengthWithLog\r\n```\r\n\r\nAnother function which can be helpful is to not use config from file. Just hardcode some default reasonable config (well, this default config still can be at least a function from `LoggerName` to `LoggerConfig` and emulate one from tutorial)."}}
{"actor":{"display_login":"ChShersh"}}