logging to the console works for me using log4j and servlets but when i make a slight modification to use a DailyRollingFileAppender I receive a security exception in tomcat's log files:
log4j:ERROR Could not create an Appender. Reported error follows. java.security.AccessControlException: access denied (java.io.FilePermission mylog.txt write) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
the rolling file appender seems to work from normal console apps. my config file looks like this:
i guess this is really a tomcat question but also.. if that were to work, what folder would the mylog.txt file be stored in? where can servlet's read and write from?