• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jboss log4j: contributing with custom appenders

 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I need to contribute to the jboss log4j configuration file with some custom appenders for my application but I would like not to modify jboss-log4j.xml.

I know I can override the jboss-log4j.xml location using the Java property log4j.configuration but I would rather prefer to use the default one plus my appenders rather then modify the default configuration or completely override it with my custom one.

Basically I would like to keep the default jboss-log4j.xml and still have my custom appenders defined in another file.

Is it possible?

Thanks,
Giovanni
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not that I know of. You could use XML's built-in include mechanisms using the !ENTITY tag. Then you would have to make only to changes to the jboss-log4j.xml file - one to declare the !ENTITY and the other to include it. Such a change should be easy to port to never versions of JBoss AS.
 
Giovanni De Stefano
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Peter,

thank you for your email. I was hoping there was another alternative :-(

I will go for the ENTITY solution.

Thanks again.

Giovanni
reply
    Bookmark Topic Watch Topic
  • New Topic