{"action":"created","issue":{"url":"https://api.github.com/repos/net-commons/common-logging/issues/99","labels_url":"https://api.github.com/repos/net-commons/common-logging/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/net-commons/common-logging/issues/99/comments","events_url":"https://api.github.com/repos/net-commons/common-logging/issues/99/events","html_url":"https://github.com/net-commons/common-logging/issues/99","id":94941761,"number":99,"title":"Question: Common.Logging.Portable application in a PCL code","user":{"login":"uwaka","id":11446067,"avatar_url":"https://avatars.githubusercontent.com/u/11446067?v=3","gravatar_id":"","url":"https://api.github.com/users/uwaka","html_url":"https://github.com/uwaka","followers_url":"https://api.github.com/users/uwaka/followers","following_url":"https://api.github.com/users/uwaka/following{/other_user}","gists_url":"https://api.github.com/users/uwaka/gists{/gist_id}","starred_url":"https://api.github.com/users/uwaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwaka/subscriptions","organizations_url":"https://api.github.com/users/uwaka/orgs","repos_url":"https://api.github.com/users/uwaka/repos","events_url":"https://api.github.com/users/uwaka/events{/privacy}","received_events_url":"https://api.github.com/users/uwaka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T13:08:17Z","updated_at":"2015-07-14T16:12:34Z","closed_at":null,"body":"Hi\r\nI'm trying to implement logging in PCL and I've come upon the Common.Logging.Portable.\r\nStarted experimenting a little and got stuck. My conundrum is as follows-\r\nIt is my understanding that Common.Logging is an interface which would then connect to NLog/ Log4Net- so for the concrete implementation I'd grab one of those guys' nuget into my project and configure as required. But neither Log4Net/NLog have an implementation for PCL so I can't add any of those nuget packages to my PCL project. What am I missing?"},"comment":{"url":"https://api.github.com/repos/net-commons/common-logging/issues/comments/121293519","html_url":"https://github.com/net-commons/common-logging/issues/99#issuecomment-121293519","issue_url":"https://api.github.com/repos/net-commons/common-logging/issues/99","id":121293519,"user":{"login":"sbohlen","id":186336,"avatar_url":"https://avatars.githubusercontent.com/u/186336?v=3","gravatar_id":"","url":"https://api.github.com/users/sbohlen","html_url":"https://github.com/sbohlen","followers_url":"https://api.github.com/users/sbohlen/followers","following_url":"https://api.github.com/users/sbohlen/following{/other_user}","gists_url":"https://api.github.com/users/sbohlen/gists{/gist_id}","starred_url":"https://api.github.com/users/sbohlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbohlen/subscriptions","organizations_url":"https://api.github.com/users/sbohlen/orgs","repos_url":"https://api.github.com/users/sbohlen/repos","events_url":"https://api.github.com/users/sbohlen/events{/privacy}","received_events_url":"https://api.github.com/users/sbohlen/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T16:12:34Z","updated_at":"2015-07-14T16:12:34Z","body":"No, you're not missing anything, that's quite correct (none of the logging\nframeworks themselves offer PCL implementations.\n\nThe way to think about Common.Logging's PCL support is that the logging\n*abstractions* in Common.Logging (e.g., ILog) are what you want to\nreference in your own PCL assemblies.  Then in your own PCL assemblies you\ncode to those PCL-based abstractions exposed by Common.Logging.\n\nIn non-PCL assemblies (yours or those of others) that reference your own\nPCL assemblies (and by implication, the same PCL abstractions assembly from\nCommon.Logging), you would reference the concrete LogAdapter classes from\nCommon.Logging and the specific logger you want.\n\n\nImagine something sort of like this....\n\nYourPCLProject\n  --ref--> Common.Logging.Portable.dll\n\nSomeNonPCLProject\n  --ref--> YourPCLProject\n  --ref--> Common.Logging.Portable.dll\n  --ref--> Common.Logging.Log4Net1211.dll\n  --ref--> Log4Net.dll\n\nDoes that make sense --?\n\n\nSteve Bohlen\nsbohlen@gmail.com\nhttp://blog.unhandled-exceptions.com\nhttp://twitter.com/sbohlen\n\nOn Tue, Jul 14, 2015 at 9:08 AM, uwaka <notifications@github.com> wrote:\n\n> Hi\n> I'm trying to implement logging in PCL and I've come upon the\n> Common.Logging.Portable.\n> Started experimenting a little and got stuck. My conundrum is as follows-\n> It is my understanding that Common.Logging is an interface which would\n> then connect to NLog/ Log4Net- so for the concrete implementation I'd grab\n> one of those guys' nuget into my project and configure as required. But\n> neither Log4Net/NLog have an implementation for PCL so I can't add any of\n> those nuget packages to my PCL project. What am I missing?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/net-commons/common-logging/issues/99>.\n>\n"}}