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

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Sat Oct 22 00:27:13 CEST 2011


     [ http://jira.qos.ch/browse/LBACCESS-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

        


More information about the logback-dev mailing list