You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Chapoor Chapoor <ch...@gmail.com> on 2005/01/11 13:03:24 UTC
Manifest.mf logging
Hi!
is there any way to log the manifest entries at startup using log4j ?
E.g.
MyAPP.ear
- /meta-inf/manifest.mf
- MyCode.jar <--- code here uses log4j to read the above app-manifest.
Anyone done thie before?
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Manifest.mf logging
Posted by Chapoor Chapoor <ch...@gmail.com>.
The log4j seems to work good. I use the logger in different classes in
MyCode.jar but the only problem I face is when I try to log the
ear_manifest stuff.
I want to have my EAR file as portable as possible, that why log4j and
mycode.jars are located in the same ear-bundle, and not using any
absolute pathes.
thanks!
On Tue, 11 Jan 2005 13:20:33 +0100, Ceki Gülcü <ce...@qos.ch> wrote:
>
> Can you ensure that log4j.jar gets loaded into memory before MyCode.jar
> starts using log4j? Have you considered placing log4j.jar outside MyAPP.ear
> in a ways such that it is visible to all class loaders?
>
> I hope this helps,
>
> At 01:03 PM 1/11/2005, Chapoor Chapoor wrote:
> >Hi!
> >
> >is there any way to log the manifest entries at startup using log4j ?
> >
> >E.g.
> >
> >MyAPP.ear
> > - /meta-inf/manifest.mf
> > - MyCode.jar <--- code here uses log4j to read the above app-manifest.
> >
> >Anyone done thie before?
> >
> >thanks.
>
> --
> Ceki Gülcü
>
> The complete log4j manual: http://www.qos.ch/log4j/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Manifest.mf logging
Posted by Ceki Gülcü <ce...@qos.ch>.
Can you ensure that log4j.jar gets loaded into memory before MyCode.jar
starts using log4j? Have you considered placing log4j.jar outside MyAPP.ear
in a ways such that it is visible to all class loaders?
I hope this helps,
At 01:03 PM 1/11/2005, Chapoor Chapoor wrote:
>Hi!
>
>is there any way to log the manifest entries at startup using log4j ?
>
>E.g.
>
>MyAPP.ear
> - /meta-inf/manifest.mf
> - MyCode.jar <--- code here uses log4j to read the above app-manifest.
>
>Anyone done thie before?
>
>thanks.
--
Ceki Gülcü
The complete log4j manual: http://www.qos.ch/log4j/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org