In fact, I have two "log4j.properties" files: one for my build
environment and one for running GAE/J (either the development server
on my computer or in the production (cloud) environment). In my
earlier post I mentioned my running properties file only.
BUILD ENVIRONEMNT EXTRACT
-------------------------
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=nbproject/Build.log
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} (%t)
%-5p [%c] - %m%n
log4j.category.DataNucleus=WARN, A1
PRODUCTION ENVIRONEMNT EXTRACT
------------------------------
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} (%t)
%-5p [%c] - %m%n
log4j.category.DataNucleus=WARN, A1
Of course, our apps cannot write to file when running under GAE
(either dev or production), hence my use of the console appender
instead of the file appender.
I know little about Log4J, but for your build environment you might
care to alter the wording of your file appender line
log4j.appender.myapp.file=C:/MyTestAppLogs.log
to
log4j.appender.myapp.File=C:/MyTestAppLogs.log
but I do not know if Log4J is case sensitive like this.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.