(John) wrote in news:27212259.0407190733.a1a73f3
@posting.google.com:
> I am trying to install log4j into an existing web app. However, when I
> debug it seem that the ligger is using ConsoleAppender instead of
> RollingFileAppender.
>
> I am guessing that it is not finding the log4j.properties file.
Sorry if this is too stupid, but where have you put the log4j.properties?
The most common solution is in <your-app>/WEB-INF/classes/
The documentation state that it is easy and works, and
I confirm this statement.
Other choices are possible, but less common.
Moreover, you miss the log4.rootLogger:
> # Sample properties to initialize log4j
> log4j.rootCategory=debug, R
should be, AFAIK,
log4j.rootLogger=DEBUG, R
(maybe yous is good, but i can swear only about mine!)
My two cents...
--
Andrea Spinelli - IT&T srl
Via Sigismondi, 40 - 24018 Villa d'Alme' (BG)
tel: +39+035636029 - fax: +39+035638129
http://www.imteam.it/