is it possible to set the log4j log file location using web.xml
peter tong
Ranch Hand
Joined: Mar 15, 2008
Posts: 234
posted
0
as caption, in presence, the log file location is set in log4j.properties, log4j.appender.A2.File={path}
is it possible to change set the log file location using web.xml?
Search for "initialization servlet" on the manual page. This doesn't show exactly what you want. But you could configure anything you want this way. You could even write out a property file at runtime based completely on information in your web.xml.
Why do you want to though? A property file is more external/easier to change than the web.xml which is part of the app.