cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Glorieux <frederic.glori...@ajlsm.com>
Subject Re: Cocoon read-only (ex: CD-ROM) add ${context-work} parameter to logkit.xconf from CocoonServlet.java
Date Fri, 29 Oct 2004 14:12:39 GMT
Vadim Gritsenko wrote:

> Frédéric Glorieux wrote:
> 
>>
>> I'm usually running multiple instances of same cocoon for debug 
>> (different ports, different servletPath, to test under different 
>> contexts and initParams). I know how to find my logs in such ways, but 
>> with the config upper, it may be nice to have something like
>>
>> {webapp}/WEB-INF/work/{ServletName}_{host}_{port}_{ServletPath}/logs
>> instead of
>> {webapp}/WEB-INF/work/cocoon-files/logs
>>
>>
>> I tried to found a way to get these infos from *CocoonServlet.java* 
>> line 271, but ServletContext and ServletConfig don't seems to expose 
>> those infos. It's of course a very bad idea to wait for the first 
>> request to get {host}_{port}_{ServletPath} for a log path, but if more 
>> guru than me have an idea of a 2 line solution...
> 
> 
> Problem is, you can run *same* Cocoon instance with different hosts, 
> ports, etc. So no, this idea is not feasible.

OK, so this thread is closed. I was thinking about something like the 
tomcat work hierarchy
Catalina
   localhost
     -
     admin
...
probably too heavy for Coocoon, if someone need it, why not use tomcat :o) ?


-- 
Frédéric Glorieux (ingénieur documentaire, AJLSM)
<http://www.ajlsm.com>

Mime
View raw message