{"action":"created","issue":{"url":"https://api.github.com/repos/pdorgambide/angular-logger/issues/20","labels_url":"https://api.github.com/repos/pdorgambide/angular-logger/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/pdorgambide/angular-logger/issues/20/comments","events_url":"https://api.github.com/repos/pdorgambide/angular-logger/issues/20/events","html_url":"https://github.com/pdorgambide/angular-logger/issues/20","id":79322121,"number":20,"title":"Should this project have adapters / appenders or behave like a Log4j for javascript?","user":{"login":"pdorgambide","id":2659125,"avatar_url":"https://avatars.githubusercontent.com/u/2659125?v=3","gravatar_id":"","url":"https://api.github.com/users/pdorgambide","html_url":"https://github.com/pdorgambide","followers_url":"https://api.github.com/users/pdorgambide/followers","following_url":"https://api.github.com/users/pdorgambide/following{/other_user}","gists_url":"https://api.github.com/users/pdorgambide/gists{/gist_id}","starred_url":"https://api.github.com/users/pdorgambide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdorgambide/subscriptions","organizations_url":"https://api.github.com/users/pdorgambide/orgs","repos_url":"https://api.github.com/users/pdorgambide/repos","events_url":"https://api.github.com/users/pdorgambide/events{/privacy}","received_events_url":"https://api.github.com/users/pdorgambide/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pdorgambide/angular-logger/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"bbottema","id":2115718,"avatar_url":"https://avatars.githubusercontent.com/u/2115718?v=3","gravatar_id":"","url":"https://api.github.com/users/bbottema","html_url":"https://github.com/bbottema","followers_url":"https://api.github.com/users/bbottema/followers","following_url":"https://api.github.com/users/bbottema/following{/other_user}","gists_url":"https://api.github.com/users/bbottema/gists{/gist_id}","starred_url":"https://api.github.com/users/bbottema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbottema/subscriptions","organizations_url":"https://api.github.com/users/bbottema/orgs","repos_url":"https://api.github.com/users/bbottema/repos","events_url":"https://api.github.com/users/bbottema/events{/privacy}","received_events_url":"https://api.github.com/users/bbottema/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-05-22T06:51:51Z","updated_at":"2015-05-28T15:54:27Z","closed_at":null,"body":"Change log levels at run time on console. Maybe it is already or near posible since the right  LogginEnhancer separation. I think that  the global LoggingEnhancer variable could do the trick.\r\nIf so we would inform at readme of this awesome issue."},"comment":{"url":"https://api.github.com/repos/pdorgambide/angular-logger/issues/comments/106438861","html_url":"https://github.com/pdorgambide/angular-logger/issues/20#issuecomment-106438861","issue_url":"https://api.github.com/repos/pdorgambide/angular-logger/issues/20","id":106438861,"user":{"login":"bbottema","id":2115718,"avatar_url":"https://avatars.githubusercontent.com/u/2115718?v=3","gravatar_id":"","url":"https://api.github.com/users/bbottema","html_url":"https://github.com/bbottema","followers_url":"https://api.github.com/users/bbottema/followers","following_url":"https://api.github.com/users/bbottema/following{/other_user}","gists_url":"https://api.github.com/users/bbottema/gists{/gist_id}","starred_url":"https://api.github.com/users/bbottema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbottema/subscriptions","organizations_url":"https://api.github.com/users/bbottema/orgs","repos_url":"https://api.github.com/users/bbottema/repos","events_url":"https://api.github.com/users/bbottema/events{/privacy}","received_events_url":"https://api.github.com/users/bbottema/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T15:54:27Z","updated_at":"2015-05-28T15:54:27Z","body":"At any rate, I made a new organisation and repo both named log4js so it is not tied to one specific person. I added us both as repo maintainers and I made an initial copy of this repo.\r\n\r\nLet's figure out what we want to do now. I still like the idea of having drop-ins for `console.debug` and `$log.warn`. We can do both too, using a common base for both. that base can handle generating a prefix and mixing in sprintf support while angular-logger uses that base to enhance $log and log4js uses that base and adds appenders to it for channeling the output.\r\n\r\nSo now I'm thinking of something along the lines of:\r\n\r\n```javascript\r\n'[logging-enhancer]'\r\n        \\--- '[angular-logging]' // stand-alone drop-in, in own repository\r\n        \\--- '[console-logging]' // stand-alone drop-in, in own repository\r\n        \\--- '[some-logging-library]' // stand-alone drop-in, in own repository\r\n        \\--- '[log4js]' // in own repository\r\n                \\--- '[angular-appender]' // in log4js repository\r\n                \\--- '[console-appender]' // in log4js repository\r\n                \\--- '[some-logging-library-appender]' // in log4js repository\r\n                \\--- '[ajax-appender]' // for REST version, in log4js repository\r\n                \\--- '[file-appender]' // for node version, in log4js repository\r\n```\r\nIt's actually easier to go from a browser version to a node version. I think you can actually use the same code unchanged. Only the _file-appender_ would fail to load in a browser."}}