You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sébastien Geindre <se...@meteo.fr> on 2007/10/26 11:41:26 UTC

logging with C2.2

hi everybody !!

a dummy question about log4j in cocoon 2.2

I need to add logger to my class, and to class of library i use in a 
transformer.
The only log4j.xml file is in target/rcl/webapp/WEB-INF/cocoon

I could modify it, but when i jetty-start, the log4j.xml file is regenerated
How is it possible to add logger to this generated log4j.xml file ?

i try customLog4jXconf properties in rclwrapper.properties, but it is 
also regenerated...

thanks !

-- 
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: logging with C2.2

Posted by Sébastien Geindre <se...@meteo.fr>.
>>>
>>>   i use the reloading classloader plugin, customLog4JXconf [1] is an 
>>> optional parameter of cocoon:rcl, but i realize it has nothing to do 
>>> with cocoon itself, just with the maven plugin project. i was lost. 
>>> i am still lost.
in fact i do not know where to set this parameter for the cocoon:rcl 
plugin...

ok i found...
it is logic when you know..

a parameter of a plugin has to be set in pom.xml file :
      <plugin>
        <groupId>org.apache.cocoon</groupId>
        <artifactId>cocoon-maven-plugin</artifactId>
        <version>1.0.0-M1</version>
        <executions>
          <execution>
            <id>rcl</id>
            <phase>compile</phase>
            <goals>
              <goal>rcl</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          
<customLog4jXconf>src/main/resources/WEB-INF/log4j.xml</customLog4jXconf> 
        </configuration>
      </plugin>

what should be the path to log4j.xml in customLog4JXconf ??
the path is absolute refering to the root block path.

Now i have my own log4j.xml file.
Thanks for the discussion, note that there is no bug !! :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: logging with C2.2

Posted by Sébastien Geindre <se...@meteo.fr>.
>> my only question is : how do you log in cocoon2.2 ??
i am sure you do log, how you do that ?
>>
>>   i use the reloading classloader plugin, customLog4JXconf [1] is an 
>> optional parameter of cocoon:rcl, but i realize it has nothing to do 
>> with cocoon itself, just with the maven plugin project. i was lost. i 
>> am still lost.
>>
>> my question is still open : ho do you log in cocoon2.2 ???
>
> Sébastien, could you please file a bug report? Thanks!
i could do that if i understand what's going on...or how cocoon works on 
logging
where cocoon expect the log4j.properties file, how manage it, ....

is there any web page that explain the way to manage log ?


-- 
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: logging with C2.2

Posted by Reinhard Poetz <re...@apache.org>.
Sébastien Geindre wrote:
> Grzegorz Kossakowski a écrit :
>> Sébastien Geindre pisze:
>>   
>>> hi everybody !!
>>>
>>> a dummy question about log4j in cocoon 2.2
>>>
>>> I need to add logger to my class, and to class of library i use in a
>>> transformer.
>>> The only log4j.xml file is in target/rcl/webapp/WEB-INF/cocoon
>>>
>>> I could modify it, but when i jetty-start, the log4j.xml file is
>>> regenerated
>>> How is it possible to add logger to this generated log4j.xml file ?
>>>
>>> i try customLog4jXconf properties in rclwrapper.properties, but it is
>>> also regenerated...

Then it might be a bug because I'm not sure if I have tested this feature 
thoroughly.

>> What do you mean by customLog4JXconf properties? I'm the one struggling with Cocoon's new logging
>> (I've little bit behind the development in this area for some time) so if I come with something new
>> I'll share my experience.
>>
>> I'm sorry for not being much helpful.
>>   
> my only question is : how do you log in cocoon2.2 ??
> 
>   i use the reloading classloader plugin, customLog4JXconf [1] is an 
> optional parameter of cocoon:rcl, but i realize it has nothing to do 
> with cocoon itself, just with the maven plugin project. i was lost. i am 
> still lost.
> 
> my question is still open : ho do you log in cocoon2.2 ???

Sébastien, could you please file a bug report? Thanks!

-- 
Reinhard Pötz                            Managing Director, {Indoqa} GmbH
                           http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair        reinhard@apache.org
_________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: logging with C2.2

Posted by Michael Holt <mi...@zenserve.com>.
Please completely disregard my last email - I have absolutely no idea how it
got sent. I'm not in need of any help. Well, no more than usual...

Mike


On 29/10/2007, Mike Holt <mi...@zenserve.com> wrote:
>
> Help
> ------------------
>
> -----Original Message-----
> From: Sébastien Geindre <se...@meteo.fr>
>
> Date: Mon, 29 Oct 2007 08:32:12
> To:users@cocoon.apache.org
> Subject: Re: logging with C2.2
>
>
> Grzegorz Kossakowski a écrit: Sébastien Geindre pisze: hi everybody !! a
> dummy question about log4j in cocoon 2.2 I need to add logger to my class,
> and to class of library i use in a transformer. The only log4j.xml file is
> in target/rcl/webapp/WEB-INF/cocoon I could modify it, but when i
> jetty-start, the log4j.xml file is regenerated How is it possible to add
> logger to this generated log4j.xml file ? i try customLog4jXconf
> properties in rclwrapper.properties, but it is also regenerated... What do
> you mean by customLog4JXconf properties? I'm the one struggling with
> Cocoon's new logging (I've little bit behind the development in this area
> for some time) so if I come with something new I'll share my experience. I'm
> sorry for not being much helpful. my only question is : how do you log in
> cocoon2.2 ??
>
>   i use the reloading classloader plugin, customLog4JXconf [1] is an
> optional parameter of cocoon:rcl, but i realize it has nothing to do with
> cocoon itself, just with the maven plugin project. i was lost. i am still
> lost.
>
> my question is still open : ho do you log in cocoon2.2 ???
>
> [1] http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/rcl-mojo.html#customLog4jXconf
>
> -- Sébastien Geindre DPREVI/AERO/DEV sebastien.geindre __at__ meteo.fr

Re: logging with C2.2

Posted by Mike Holt <mi...@zenserve.com>.
Help
------------------

-----Original Message-----
From: Sébastien Geindre <se...@meteo.fr>

Date: Mon, 29 Oct 2007 08:32:12 
To:users@cocoon.apache.org
Subject: Re: logging with C2.2


Grzegorz Kossakowski a écrit : Sébastien Geindre pisze: hi everybody !! a dummy question about log4j in cocoon 2.2 I need to add logger to my class, and to class of library i use in a transformer. The only log4j.xml file is in target/rcl/webapp/WEB-INF/cocoon I could modify it, but when i jetty-start, the log4j.xml file is regenerated How is it possible to add logger to this generated log4j.xml file ? i try customLog4jXconf properties in rclwrapper.properties, but it is also regenerated... What do you mean by customLog4JXconf properties? I'm the one struggling with Cocoon's new logging (I've little bit behind the development in this area for some time) so if I come with something new I'll share my experience. I'm sorry for not being much helpful. my only question is : how do you log in cocoon2.2 ??
 
   i use the reloading classloader plugin, customLog4JXconf [1] is an optional parameter of cocoon:rcl, but i realize it has nothing to do with cocoon itself, just with the maven plugin project. i was lost. i am still lost.
 
 my question is still open : ho do you log in cocoon2.2 ???
 
 [1] http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/rcl-mojo.html#customLog4jXconf
 -- Sébastien Geindre DPREVI/AERO/DEV sebastien.geindre __at__ meteo.fr 

Re: logging with C2.2

Posted by Sébastien Geindre <se...@meteo.fr>.
Grzegorz Kossakowski a écrit :
> Sébastien Geindre pisze:
>   
>> hi everybody !!
>>
>> a dummy question about log4j in cocoon 2.2
>>
>> I need to add logger to my class, and to class of library i use in a
>> transformer.
>> The only log4j.xml file is in target/rcl/webapp/WEB-INF/cocoon
>>
>> I could modify it, but when i jetty-start, the log4j.xml file is
>> regenerated
>> How is it possible to add logger to this generated log4j.xml file ?
>>
>> i try customLog4jXconf properties in rclwrapper.properties, but it is
>> also regenerated...
>>     
>
> What do you mean by customLog4JXconf properties? I'm the one struggling with Cocoon's new logging
> (I've little bit behind the development in this area for some time) so if I come with something new
> I'll share my experience.
>
> I'm sorry for not being much helpful.
>   
my only question is : how do you log in cocoon2.2 ??

  i use the reloading classloader plugin, customLog4JXconf [1] is an 
optional parameter of cocoon:rcl, but i realize it has nothing to do 
with cocoon itself, just with the maven plugin project. i was lost. i am 
still lost.

my question is still open : ho do you log in cocoon2.2 ???

[1] 
http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/rcl-mojo.html#customLog4jXconf 
<http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/rcl-mojo.html#customLog4jXconf>

-- 
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr



Re: logging with C2.2

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Sébastien Geindre pisze:
> hi everybody !!
> 
> a dummy question about log4j in cocoon 2.2
> 
> I need to add logger to my class, and to class of library i use in a
> transformer.
> The only log4j.xml file is in target/rcl/webapp/WEB-INF/cocoon
> 
> I could modify it, but when i jetty-start, the log4j.xml file is
> regenerated
> How is it possible to add logger to this generated log4j.xml file ?
> 
> i try customLog4jXconf properties in rclwrapper.properties, but it is
> also regenerated...

What do you mean by customLog4JXconf properties? I'm the one struggling with Cocoon's new logging
(I've little bit behind the development in this area for some time) so if I come with something new
I'll share my experience.

I'm sorry for not being much helpful.

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org