Hi,
I am new to adf.Can anyone please help me how to configure log4j in adf 12.1.3?
I have done like the foloowing way. I am not getting any logstatement in to my console.
1) Added log4j jars in the project library
2) Created a file log4j.properties in my Application Sources Directory (this folder is seen in jdev – in both ViewController and Model Folder).
For Model project this file has to be present at <path of model project>Model\src.
For ViewController project this file has to be present as <path of model project>ViewController\src
3) Pasted the following contents
****************************
# Set root logger level to INFO and its only appender to ConsoleOut.
log4j.rootLogger=INFO,ConsoleOut,F
# ConsoleOut is set to be a ConsoleAppender.
log4j.appender.ConsoleOut=org.apache.log4j.ConsoleAppender
# ConsoleOut uses PatternLayout.
log4j.appender.ConsoleOut.layout=org.apache.log4j.PatternLayout
log4j.appender.ConsoleOut.layout.ConversionPattern=%-5p: [%d] %c{1} – %m%n
log4j.logger.org.apache.jsp=DEBUG
log4j.appender.F=org.apache.log4j.FileAppender
log4j.appender.F.File=C:/Logs/Logger.log
log4j.appender.F.layout=org.apache.log4j.PatternLayout
log4j.appender.F.layout.ConversionPattern=%d{MM-dd@HH:mm:ss,SSS} %-5p (%13F:%L) %3x – %m%n
-- I added the .jars file in to my project(myproject--rightclick---applicationproperties---libraries and classpath and there i added below jars)
log4j-api-2.1.jar
log4j-core-2.1.jar
log4j-web-2.1.jar
So, please let me know whare was the wrong and why it is not working?
----
JS