{"action":"created","issue":{"url":"https://api.github.com/repos/orhanobut/logger/issues/161","repository_url":"https://api.github.com/repos/orhanobut/logger","labels_url":"https://api.github.com/repos/orhanobut/logger/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/orhanobut/logger/issues/161/comments","events_url":"https://api.github.com/repos/orhanobut/logger/issues/161/events","html_url":"https://github.com/orhanobut/logger/issues/161","id":284074852,"number":161,"title":"How to use in multiple modules/libraries with different FormatStrategy but one LogAdapter?","user":{"login":"morris-stock","id":1237906,"avatar_url":"https://avatars1.githubusercontent.com/u/1237906?v=4","gravatar_id":"","url":"https://api.github.com/users/morris-stock","html_url":"https://github.com/morris-stock","followers_url":"https://api.github.com/users/morris-stock/followers","following_url":"https://api.github.com/users/morris-stock/following{/other_user}","gists_url":"https://api.github.com/users/morris-stock/gists{/gist_id}","starred_url":"https://api.github.com/users/morris-stock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morris-stock/subscriptions","organizations_url":"https://api.github.com/users/morris-stock/orgs","repos_url":"https://api.github.com/users/morris-stock/repos","events_url":"https://api.github.com/users/morris-stock/events{/privacy}","received_events_url":"https://api.github.com/users/morris-stock/received_events","type":"User","site_admin":false},"labels":[{"id":614774906,"url":"https://api.github.com/repos/orhanobut/logger/labels/waiting%20for%20reply","name":"waiting for reply","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-22T05:21:31Z","updated_at":"2018-03-28T02:40:34Z","closed_at":null,"author_association":"NONE","body":"I use ``logger`` in multiple modules/libraries, and setup adapter once, the problem is it's very hard to filter logs from different modules/libraries."},"comment":{"url":"https://api.github.com/repos/orhanobut/logger/issues/comments/376741546","html_url":"https://github.com/orhanobut/logger/issues/161#issuecomment-376741546","issue_url":"https://api.github.com/repos/orhanobut/logger/issues/161","id":376741546,"user":{"login":"morris-stock","id":1237906,"avatar_url":"https://avatars1.githubusercontent.com/u/1237906?v=4","gravatar_id":"","url":"https://api.github.com/users/morris-stock","html_url":"https://github.com/morris-stock","followers_url":"https://api.github.com/users/morris-stock/followers","following_url":"https://api.github.com/users/morris-stock/following{/other_user}","gists_url":"https://api.github.com/users/morris-stock/gists{/gist_id}","starred_url":"https://api.github.com/users/morris-stock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morris-stock/subscriptions","organizations_url":"https://api.github.com/users/morris-stock/orgs","repos_url":"https://api.github.com/users/morris-stock/repos","events_url":"https://api.github.com/users/morris-stock/events{/privacy}","received_events_url":"https://api.github.com/users/morris-stock/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T02:40:34Z","updated_at":"2018-03-28T02:40:34Z","author_association":"NONE","body":"Sure it is to filter log messages, but if I didn't miss anything, I should add tags to every log call or use a log wrapper.\r\n\r\nWhat I really want is something like this:\r\n\r\nassume I have `App`, `modA`, `modB`,\r\n```\r\nloggerApp = Logger.getDefaultLogger();\r\nloggerA = Logger.getLogger(\"modA\");\r\nloggerB = Logger.getLogger(\"modB\");\r\n```\r\nall loggers use the same `LogAdapter`, with the interface that I can do some basic configuration(e.g. tag prefix)."}}
{"actor":{"display_login":"morris-stock"}}