[logback-dev] [JIRA] Commented: (LBACCESS-26) Can't set RequestLogImpl to use a logback-access.xml file via a classpath path
Marshall Pierce (JIRA)
noreply-jira at qos.ch
Tue Nov 1 23:16:12 CET 2011
[ http://jira.qos.ch/browse/LBACCESS-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12245#action_12245 ]
Marshall Pierce commented on LBACCESS-26:
-----------------------------------------
In conjunction with https://github.com/ceki/logback/commit/59e0cc914b973679bdba216a08b8cb0e42dbd406, 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
More information about the logback-dev
mailing list