• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

log4j configuratiions in JBOSS 4.0.4

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello to everyone.
i am working upon the JBoss server and log4j. can anyone please tell me that
1) how can i force jboss to log at specific directory eg. C:/log
2) what will be given prefrence log4j.xml or log4j.properties.
3) i used both but the problem is log4j.properties creates an empty file at my specific
location. and it is unaccessible (meanz donot created) untill i shutdown the JBoss.
4) how can i get diffrent log for diffrent user in diffrent .log files? some one told me
NDC (Nested Diagnostics Context) but i am unable to find even a single complete example
of NDC.

here is my log4j.xml file



here is my log4j.properties file






please help me out. how can i fix it.
all kinds of suggestions and solutions are highly appreciated from me.

Regards.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JBoss has its own log4j.xml file under %JBOSS_HOME%/server/< serverName>/conf folder. The log4j config files in the application's package are ignored. Add your configurations to the log4j.xml present in JBoss' conf folder.
 
Amir Iqbal
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jaikiran. i tried. can you please tell me how may i configure it for NDC ???
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Amir Iqbal:
can you please tell me how may i configure it for NDC ???



Amir,

Since you are asking about a log4j specific question, let's continue this discussion in your duplicate post here
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic