Can you put the logback.xml file at the ear level?

Hello, I currently have my logback jar files packaged at the ear level and referenced by my manifest file. I am looking to put the logback.xml file at this level as well, but I am unable to get it to work. Reading through the archives, I thought I remember reading that this won't work and that you have to put the logback.xml file within a jar file for it to work. Is this true? Is there a way to package the logback.xml file at the ear level without putting it in its own jar file? Thanks for your help. Joshua

On 02.11.2010 18:13, JW wrote:
Hello,
I currently have my logback jar files packaged at the ear level and referenced by my manifest file. I am looking to put the logback.xml file at this level as well, but I am unable to get it to work. Reading through the archives, I thought I remember reading that this won't work and that you have to put the logback.xml file within a jar file for it to work. Is this true? Is there a way to package the logback.xml file at the ear level without putting it in its own jar file?
Yes. You need to mention the *folder* where logback.xml is located in the ear file's manifest. Do not mention logback.xml in that file. HTH,
Joshua
-- Ceki

Ceki, I'll give this a try. That would mean that these files could not exist in the root of the ear then, correct? -Josh On Thu, Nov 4, 2010 at 3:22 AM, Ceki Gulcu <ceki@qos.ch> wrote:
On 02.11.2010 18:13, JW wrote:
Hello,
I currently have my logback jar files packaged at the ear level and referenced by my manifest file. I am looking to put the logback.xml file at this level as well, but I am unable to get it to work. Reading through the archives, I thought I remember reading that this won't work and that you have to put the logback.xml file within a jar file for it to work. Is this true? Is there a way to package the logback.xml file at the ear level without putting it in its own jar file?
Yes. You need to mention the *folder* where logback.xml is located in the ear file's manifest. Do not mention logback.xml in that file.
HTH,
Joshua
-- Ceki
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user

I think that logback.xml could be located at the root of the ear by specifying the './' folder in the manifest to designate the root folder. On 04.11.2010 13:42, JW wrote:
Ceki,
I'll give this a try. That would mean that these files could not exist in the root of the ear then, correct?
-Josh
On Thu, Nov 4, 2010 at 3:22 AM, Ceki Gulcu <ceki@qos.ch <mailto:ceki@qos.ch>> wrote:
On 02.11.2010 18:13, JW wrote:
Hello,
I currently have my logback jar files packaged at the ear level and referenced by my manifest file. I am looking to put the logback.xml file at this level as well, but I am unable to get it to work. Reading through the archives, I thought I remember reading that this won't work and that you have to put the logback.xml file within a jar file for it to work. Is this true? Is there a way to package the logback.xml file at the ear level without putting it in its own jar file?
Yes. You need to mention the *folder* where logback.xml is located in the ear file's manifest. Do not mention logback.xml in that file.
HTH,
Joshua
-- Ceki
_______________________________________________ Logback-user mailing list Logback-user@qos.ch <mailto:Logback-user@qos.ch> http://qos.ch/mailman/listinfo/logback-user
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
participants (2)
-
Ceki Gulcu
-
JW