diff --git a/samples/contacts/src/main/webapp/WEB-INF/classes/log4j.properties b/samples/contacts/src/main/webapp/WEB-INF/classes/log4j.properties new file mode 100644 index 0000000000..2fcccdf433 --- /dev/null +++ b/samples/contacts/src/main/webapp/WEB-INF/classes/log4j.properties @@ -0,0 +1,37 @@ +# Global logging configuration +log4j.rootLogger=WARN, stdout, fileout + +#log4j.logger.org.springframework.aop.framework.autoproxy=DEBUG, stdout, fileout +#log4j.logger.org.springframework.aop.framework.autoproxy.metadata=DEBUG, stdout, fileout +#log4j.logger.org.springframework.aop.framework.autoproxy.target=DEBUG, stdout, fileout +#log4j.logger.org.springframework.transaction.interceptor=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.intercept=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.intercept.method=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.intercept.web=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.afterinvocation=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.acl=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.acl.basic=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.taglibs.authz=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.ui.basicauth=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.ui.rememberme=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.ui=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.afterinvocation=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.ui.rmi=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.ui.httpinvoker=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.util=DEBUG, stdout, fileout +#log4j.logger.org.acegisecurity.providers.dao=DEBUG, stdout, fileout +log4j.logger.sample.contact=DEBUG, stdout, fileout + +# Console output... +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.conversionPattern=[%p,%c{1},%t] %m%n + +# Rolling log file output... +log4j.appender.fileout=org.apache.log4j.RollingFileAppender +log4j.appender.fileout.File=contacts.log +#log4j.appender.fileout.File=${webapp.root}/WEB-INF/log4j.log +log4j.appender.fileout.MaxFileSize=1024KB +log4j.appender.fileout.MaxBackupIndex=1 +log4j.appender.fileout.layout=org.apache.log4j.PatternLayout +log4j.appender.fileout.layout.conversionPattern=%d{ABSOLUTE} %5p %c{1},%t:%L - %m%n diff --git a/samples/contacts/src/main/webapp/WEB-INF/classes/messages.properties b/samples/contacts/src/main/webapp/WEB-INF/classes/messages.properties new file mode 100644 index 0000000000..058905c6c1 --- /dev/null +++ b/samples/contacts/src/main/webapp/WEB-INF/classes/messages.properties @@ -0,0 +1,6 @@ +err.name=Name 3-50 characters is required. +err.email=Email 3-50 characters is required. +err.permission=Permission is required. +err.recipient=Recipient is required. +err.permission.invalid=The indicated permission is invalid. +err.recipient.length=The recipient is too long (maximum 100 characters). \ No newline at end of file