{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/5028","labels_url":"https://api.github.com/repos/playframework/playframework/issues/5028/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/5028/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/5028/events","html_url":"https://github.com/playframework/playframework/issues/5028","id":102737935,"number":5028,"title":"[2.4] Cannot use custom logfile","user":{"login":"mariussoutier","id":248811,"avatar_url":"https://avatars.githubusercontent.com/u/248811?v=3","gravatar_id":"","url":"https://api.github.com/users/mariussoutier","html_url":"https://github.com/mariussoutier","followers_url":"https://api.github.com/users/mariussoutier/followers","following_url":"https://api.github.com/users/mariussoutier/following{/other_user}","gists_url":"https://api.github.com/users/mariussoutier/gists{/gist_id}","starred_url":"https://api.github.com/users/mariussoutier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariussoutier/subscriptions","organizations_url":"https://api.github.com/users/mariussoutier/orgs","repos_url":"https://api.github.com/users/mariussoutier/repos","events_url":"https://api.github.com/users/mariussoutier/events{/privacy}","received_events_url":"https://api.github.com/users/mariussoutier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T08:34:25Z","updated_at":"2015-08-26T15:32:47Z","closed_at":null,"body":"Specifying a custom logfile as per [documentation](https://www.playframework.com/documentation/2.4.x/ProductionConfiguration#Logging-configuration) doesn't seem to work for me. In dev mode, some loggers are completely ignored. In testProd mode the logger work fine but a custom log file is not used (only the settings from logback.xml).\r\n\r\nI have created this example project to illustrate the issue:\r\nhttps://github.com/mariussoutier/play-logger-probs\r\n"},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/135065480","html_url":"https://github.com/playframework/playframework/issues/5028#issuecomment-135065480","issue_url":"https://api.github.com/repos/playframework/playframework/issues/5028","id":135065480,"user":{"login":"nlochschmidt","id":759624,"avatar_url":"https://avatars.githubusercontent.com/u/759624?v=3","gravatar_id":"","url":"https://api.github.com/users/nlochschmidt","html_url":"https://github.com/nlochschmidt","followers_url":"https://api.github.com/users/nlochschmidt/followers","following_url":"https://api.github.com/users/nlochschmidt/following{/other_user}","gists_url":"https://api.github.com/users/nlochschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/nlochschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlochschmidt/subscriptions","organizations_url":"https://api.github.com/users/nlochschmidt/orgs","repos_url":"https://api.github.com/users/nlochschmidt/repos","events_url":"https://api.github.com/users/nlochschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/nlochschmidt/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T15:32:47Z","updated_at":"2015-08-26T15:32:47Z","body":"I think this is only the case when using compile-time DI. Attaching a debugger shows that [`Logger.init()`](https://github.com/playframework/playframework/blob/2b5f708d5cf912af4eb8410a2534ce298a4e54cb/framework/src/play/src/main/scala/play/api/Logger.scala#L198-L203) gets called which configures the logger using the fallback configurations `logback-play-{dev|prod}.xml`. Afterwards I expected [`Logger.configure(Environment)`](https://github.com/playframework/playframework/blob/2b5f708d5cf912af4eb8410a2534ce298a4e54cb/framework/src/play/src/main/scala/play/api/Logger.scala#L208) to be called but it is not. \r\n\r\nBy the way, when using runtime DI the Logger is configured from the [`GuiceApplicationBuilder. applicationModule()`](https://github.com/playframework/playframework/blob/65a99e9095f262e8027c64bd539cb2b654f4de86/framework/src/play/src/main/scala/play/api/inject/guice/GuiceApplicationBuilder.scala#L73)."}}