wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Using your own log4j.properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Using your own log4j.properties file" Watch "Using your own log4j.properties file" New topic

Using your own log4j.properties file


Joined: Jan 16, 2007
Posts: 3

Using your own log4j.properties file - class loader scoping

i followed above URL.

in default/conf directory i renamed log4j.xml to jboss-log4j.xml;and in jboss-service.xml i changed log4j.xml to jboss-log4j.xml;

i want to use my own log4j.properties and it is placed in WEB-INF of test.war directory;

log4j1.2.4.jar placed in WEB-INF/lib directory.i made changes in jboss-web.xml.

<class-loading java2ClassLoadingCompliance='false'>


og4j.category.app=info, SESSME
# Keep ten backup files
log4j.appender.SESSME.layout.ConversionPattern=%d , %m%n

i have one doubt should i write any java file to read log4j.properties that i placed in WEB-INF directory or else jboss will automatically read log4j.properties file

But still it is logging in to server.log ................
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60810


You have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are removed.

JavaRanch Sheriff

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]

Joined: Jan 16, 2007
Posts: 3
I could nt understand why the hell R U making....Why couldnt I have my own display Name ,if not why did U gave an option of entering the Display Name during the registration process if display Name is merely a First Name and Last NAme seperated by a space!!! This could have been automatically generated by displayName=firstName +" "+ lastName

This is really funny to hear that U guys are so crazy about Display Name rather than concentrate on other Issues.. The Display Name which I had given is not any obscene one.. so why this nonsense..

A policy should be a bit meaningful.... like no obscene words usage or non usage of celebrities etc.,., Not like FiratName only cannot be Used and so on...blah blah......
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

It is because we believe that real names contribute to a friendlier and more professional community. If you would like to discuss our display name policy, you can do so in this thread: Discussion of Naming Policy but you will need to register with a new account as I am closing this one

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60810

When and if you begin posting using your new account with a valid display name, please be sure to use real words when posting. R and U are not real words. Please use "are" and "you". Thanks.
I agree. Here's the link: http://aspose.com/file-tools
subject: Using your own log4j.properties file
Similar Threads
Loading different version of Hibernate(3.3) in Jboss4.0.3
using log4j in jsr portlets
Logging in JBoss 4.0.1
log4j.properties in jboss4.0.3
three day headache - ClassCastException