You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Frank Zhang <Fr...@citrix.com> on 2013/02/13 00:16:03 UTC
where is the log for initialization phase? Spring bean's init()
I add some log in bean's init() method, however, it never shows up in vmops.log
Where can I log for initialization phase?
I am using ' mvn -pl :cloud-client-ui jetty:run' to start mgmt server
Re: where is the log for initialization phase? Spring bean's init()
Posted by Rohit Yadav <bh...@apache.org>.
Pl. do that if possible, I cannot see debug messages during the
startup of mgmt server.
Regards.
On Wed, Feb 13, 2013 at 5:49 AM, Frank Zhang <Fr...@citrix.com> wrote:
> <listener>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> </listener>
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>classpath:applicationContext.xml, classpath:componentContext.xml</param-value>
> </context-param>
>
> I think you can add a listener which initializes log4j ahead Spring's ContextLoaderListener
>
>
>> -----Original Message-----
>> From: Kelven Yang [mailto:kelven.yang@citrix.com]
>> Sent: Tuesday, February 12, 2013 4:05 PM
>> To: cloudstack-dev@incubator.apache.org
>> Subject: Re: where is the log for initialization phase? Spring bean's init()
>>
>> We need to enable log4j ahead of Spring initialization, this is currently not
>> there yet but I will try to fix it.
>>
>> Kelven
>>
>> On 2/12/13 3:16 PM, "Frank Zhang" <Fr...@citrix.com> wrote:
>>
>> >I add some log in bean's init() method, however, it never shows up in
>> >vmops.log Where can I log for initialization phase?
>> >
>> >I am using ' mvn -pl :cloud-client-ui jetty:run' to start mgmt server
>
RE: where is the log for initialization phase? Spring bean's init()
Posted by Frank Zhang <Fr...@citrix.com>.
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml, classpath:componentContext.xml</param-value>
</context-param>
I think you can add a listener which initializes log4j ahead Spring's ContextLoaderListener
> -----Original Message-----
> From: Kelven Yang [mailto:kelven.yang@citrix.com]
> Sent: Tuesday, February 12, 2013 4:05 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: where is the log for initialization phase? Spring bean's init()
>
> We need to enable log4j ahead of Spring initialization, this is currently not
> there yet but I will try to fix it.
>
> Kelven
>
> On 2/12/13 3:16 PM, "Frank Zhang" <Fr...@citrix.com> wrote:
>
> >I add some log in bean's init() method, however, it never shows up in
> >vmops.log Where can I log for initialization phase?
> >
> >I am using ' mvn -pl :cloud-client-ui jetty:run' to start mgmt server
Re: where is the log for initialization phase? Spring bean's init()
Posted by Kelven Yang <ke...@citrix.com>.
We need to enable log4j ahead of Spring initialization, this is currently
not there yet but I will try to fix it.
Kelven
On 2/12/13 3:16 PM, "Frank Zhang" <Fr...@citrix.com> wrote:
>I add some log in bean's init() method, however, it never shows up in
>vmops.log
>Where can I log for initialization phase?
>
>I am using ' mvn -pl :cloud-client-ui jetty:run' to start mgmt server