[JIRA] Created: (LBACCESS-26) Can't set RequestLogImpl to use a logback-access.xml file via a classpath path

Can't set RequestLogImpl to use a logback-access.xml file via a classpath path ------------------------------------------------------------------------------ Key: LBACCESS-26 URL: http://jira.qos.ch/browse/LBACCESS-26 Project: logback-access Issue Type: Bug Affects Versions: 0.9.28 Reporter: Marshall Pierce Assignee: Logback dev list (Affects 0.9.30, the latest version at the moment) ch.qos.logback.access.jetty.v7.RequestLogImpl has setFileName, the result of which is then handed to File's constructor. This is fine when you're deploying inside a standalone jetty that has the jetty.home property set to a filesystem path, but when you're using embedded jetty, you don't have any of that. Instead I'd like to be able to have it find "/logback-access.xml" in the classpath just the way logback classic does with "/logback.xml". I'm happy to implement the patch; just let me know how you'd like it to be done. One way would be to provide a setter on RLImpl that takes a URL which, if specified, takes precedence over the filename. As a workaround I'm creating a JoranConfigurator and using its doConfigure(URL) method on a URL loaded from the classpath. This works, but it'd be nice to not have to do that. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBACCESS-26?page=com.atlassian.jira.plugin.system.... ] Ceki Gulcu reassigned LBACCESS-26: ---------------------------------- Assignee: Ceki Gulcu (was: Logback dev list)
Can't set RequestLogImpl to use a logback-access.xml file via a classpath path ------------------------------------------------------------------------------
Key: LBACCESS-26 URL: http://jira.qos.ch/browse/LBACCESS-26 Project: logback-access Issue Type: Bug Affects Versions: 0.9.28 Reporter: Marshall Pierce Assignee: Ceki Gulcu
(Affects 0.9.30, the latest version at the moment) ch.qos.logback.access.jetty.v7.RequestLogImpl has setFileName, the result of which is then handed to File's constructor. This is fine when you're deploying inside a standalone jetty that has the jetty.home property set to a filesystem path, but when you're using embedded jetty, you don't have any of that. Instead I'd like to be able to have it find "/logback-access.xml" in the classpath just the way logback classic does with "/logback.xml". I'm happy to implement the patch; just let me know how you'd like it to be done. One way would be to provide a setter on RLImpl that takes a URL which, if specified, takes precedence over the filename. As a workaround I'm creating a JoranConfigurator and using its doConfigure(URL) method on a URL loaded from the classpath. This works, but it'd be nice to not have to do that.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBACCESS-26?page=com.atlassian.jira.plugin.system.... ] Ceki Gulcu commented on LBACCESS-26: ------------------------------------ Could you please provide a patch? Note that in 1.0.0, jetty 7 is supported directly and that the ch.qos.logback.access.jetty.v7 no longer exists.
Can't set RequestLogImpl to use a logback-access.xml file via a classpath path ------------------------------------------------------------------------------
Key: LBACCESS-26 URL: http://jira.qos.ch/browse/LBACCESS-26 Project: logback-access Issue Type: Bug Affects Versions: 0.9.28 Reporter: Marshall Pierce Assignee: Ceki Gulcu
(Affects 0.9.30, the latest version at the moment) ch.qos.logback.access.jetty.v7.RequestLogImpl has setFileName, the result of which is then handed to File's constructor. This is fine when you're deploying inside a standalone jetty that has the jetty.home property set to a filesystem path, but when you're using embedded jetty, you don't have any of that. Instead I'd like to be able to have it find "/logback-access.xml" in the classpath just the way logback classic does with "/logback.xml". I'm happy to implement the patch; just let me know how you'd like it to be done. One way would be to provide a setter on RLImpl that takes a URL which, if specified, takes precedence over the filename. As a workaround I'm creating a JoranConfigurator and using its doConfigure(URL) method on a URL loaded from the classpath. This works, but it'd be nice to not have to do that.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBACCESS-26?page=com.atlassian.jira.plugin.system.... ] Marshall Pierce updated LBACCESS-26: ------------------------------------ Attachment: logback-access-patch This patch seems to work fine.
Can't set RequestLogImpl to use a logback-access.xml file via a classpath path ------------------------------------------------------------------------------
Key: LBACCESS-26 URL: http://jira.qos.ch/browse/LBACCESS-26 Project: logback-access Issue Type: Bug Affects Versions: 0.9.28 Reporter: Marshall Pierce Assignee: Ceki Gulcu Attachments: logback-access-patch
(Affects 0.9.30, the latest version at the moment) ch.qos.logback.access.jetty.v7.RequestLogImpl has setFileName, the result of which is then handed to File's constructor. This is fine when you're deploying inside a standalone jetty that has the jetty.home property set to a filesystem path, but when you're using embedded jetty, you don't have any of that. Instead I'd like to be able to have it find "/logback-access.xml" in the classpath just the way logback classic does with "/logback.xml". I'm happy to implement the patch; just let me know how you'd like it to be done. One way would be to provide a setter on RLImpl that takes a URL which, if specified, takes precedence over the filename. As a workaround I'm creating a JoranConfigurator and using its doConfigure(URL) method on a URL loaded from the classpath. This works, but it'd be nice to not have to do that.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBACCESS-26?page=com.atlassian.jira.plugin.system.... ] Ceki Gulcu commented on LBACCESS-26: ------------------------------------ Let me know if http://github.com/ceki/logback/commit/eeca3cce56c fits your requirements
Can't set RequestLogImpl to use a logback-access.xml file via a classpath path ------------------------------------------------------------------------------
Key: LBACCESS-26 URL: http://jira.qos.ch/browse/LBACCESS-26 Project: logback-access Issue Type: Bug Affects Versions: 0.9.28 Reporter: Marshall Pierce Assignee: Ceki Gulcu Attachments: logback-access-patch
(Affects 0.9.30, the latest version at the moment) ch.qos.logback.access.jetty.v7.RequestLogImpl has setFileName, the result of which is then handed to File's constructor. This is fine when you're deploying inside a standalone jetty that has the jetty.home property set to a filesystem path, but when you're using embedded jetty, you don't have any of that. Instead I'd like to be able to have it find "/logback-access.xml" in the classpath just the way logback classic does with "/logback.xml". I'm happy to implement the patch; just let me know how you'd like it to be done. One way would be to provide a setter on RLImpl that takes a URL which, if specified, takes precedence over the filename. As a workaround I'm creating a JoranConfigurator and using its doConfigure(URL) method on a URL loaded from the classpath. This works, but it'd be nice to not have to do that.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBACCESS-26?page=com.atlassian.jira.plugin.system.... ] Marshall Pierce commented on LBACCESS-26: ----------------------------------------- In conjunction with https://github.com/ceki/logback/commit/59e0cc914b973679bdba216a08b8cb0e42dbd..., filesystem- and classpath-based configuration is working great.
Can't set RequestLogImpl to use a logback-access.xml file via a classpath path ------------------------------------------------------------------------------
Key: LBACCESS-26 URL: http://jira.qos.ch/browse/LBACCESS-26 Project: logback-access Issue Type: Bug Affects Versions: 0.9.28 Reporter: Marshall Pierce Assignee: Ceki Gulcu Attachments: logback-access-patch
(Affects 0.9.30, the latest version at the moment) ch.qos.logback.access.jetty.v7.RequestLogImpl has setFileName, the result of which is then handed to File's constructor. This is fine when you're deploying inside a standalone jetty that has the jetty.home property set to a filesystem path, but when you're using embedded jetty, you don't have any of that. Instead I'd like to be able to have it find "/logback-access.xml" in the classpath just the way logback classic does with "/logback.xml". I'm happy to implement the patch; just let me know how you'd like it to be done. One way would be to provide a setter on RLImpl that takes a URL which, if specified, takes precedence over the filename. As a workaround I'm creating a JoranConfigurator and using its doConfigure(URL) method on a URL loaded from the classpath. This works, but it'd be nice to not have to do that.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBACCESS-26?page=com.atlassian.jira.plugin.system.... ] Ceki Gulcu resolved LBACCESS-26. -------------------------------- Resolution: Fixed Resolved in 1.0.1.
Can't set RequestLogImpl to use a logback-access.xml file via a classpath path ------------------------------------------------------------------------------
Key: LBACCESS-26 URL: http://jira.qos.ch/browse/LBACCESS-26 Project: logback-access Issue Type: Bug Affects Versions: 0.9.28 Reporter: Marshall Pierce Assignee: Ceki Gulcu Attachments: logback-access-patch
(Affects 0.9.30, the latest version at the moment) ch.qos.logback.access.jetty.v7.RequestLogImpl has setFileName, the result of which is then handed to File's constructor. This is fine when you're deploying inside a standalone jetty that has the jetty.home property set to a filesystem path, but when you're using embedded jetty, you don't have any of that. Instead I'd like to be able to have it find "/logback-access.xml" in the classpath just the way logback classic does with "/logback.xml". I'm happy to implement the patch; just let me know how you'd like it to be done. One way would be to provide a setter on RLImpl that takes a URL which, if specified, takes precedence over the filename. As a workaround I'm creating a JoranConfigurator and using its doConfigure(URL) method on a URL loaded from the classpath. This works, but it'd be nice to not have to do that.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBACCESS-26?page=com.atlassian.jira.plugin.system.... ] Ceki Gulcu closed LBACCESS-26. ------------------------------
Can't set RequestLogImpl to use a logback-access.xml file via a classpath path ------------------------------------------------------------------------------
Key: LBACCESS-26 URL: http://jira.qos.ch/browse/LBACCESS-26 Project: logback-access Issue Type: Bug Affects Versions: 0.9.28 Reporter: Marshall Pierce Assignee: Ceki Gulcu Attachments: logback-access-patch
(Affects 0.9.30, the latest version at the moment) ch.qos.logback.access.jetty.v7.RequestLogImpl has setFileName, the result of which is then handed to File's constructor. This is fine when you're deploying inside a standalone jetty that has the jetty.home property set to a filesystem path, but when you're using embedded jetty, you don't have any of that. Instead I'd like to be able to have it find "/logback-access.xml" in the classpath just the way logback classic does with "/logback.xml". I'm happy to implement the patch; just let me know how you'd like it to be done. One way would be to provide a setter on RLImpl that takes a URL which, if specified, takes precedence over the filename. As a workaround I'm creating a JoranConfigurator and using its doConfigure(URL) method on a URL loaded from the classpath. This works, but it'd be nice to not have to do that.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
participants (2)
-
Ceki Gulcu (JIRA)
-
Marshall Pierce (JIRA)