logging - Why location of log File specified in File appender is not being changed? -


I am using log4j.xml in weblogic, I have the file param FileAppender as shown below:

  & lt ;? Xml version = "1.0" encoding = "ISO-8859-1" & gt; & Lt ;! DOCTYPE log4j: Configuration system "log4j.dtd" & gt; & Lt; log4j: Configuration & gt; & Lt; Appender Name = "file1" class = "org.apache.log4j.FileAppender" & gt; & Lt; Param name = "file" value = "D: \ ReadText_File \ info.txt" /> & Lt; Param name = "append" value = "true" /> & Lt; Layout class = "org.apache.log4j.PatternLayout" & gt; & Lt; param name = "ConversionPattern" value = "% d {ISO8601}% -5p [% c {1}] -% l -% m% n" / & gt; & Lt; / Layout & gt; & Lt; Filter class = "org.apache.log4j.varia.LevelMatchFilter" & gt; & Lt; Param name = "LevelToMatch" value = "INFO" /> & Lt; Param name = "accept icon" value = "true" /> & Lt; / Filter & gt; & Lt; Filter class = "org.apache.log4j.varia.DenyAllFilter" /> & Lt; / Appender & gt; & Lt; Logger name = "client.clash" additivity = "false" & gt; & Lt; Epander-Riff Ref = "file1" /> & Lt; / Logger & gt; & Lt; Root & gt; & Lt; Priority value = "info" /> & Lt; Epander-Riff Ref = "file1" /> & Lt; / Root & gt; & Lt; / Log4j: Configuration & gt;   

As you can now see that I have given a way to create a log file; Instead of creating a file in ReadText_File folder, it creates the desired file in wls12120 \ user_projects \ domains \ mydomain \ And its name is ReadText_Fileinfo.txt

.

There is a very small thing for all this nonsense;
tried to use slash "/" instead of slash "\" on the way back; This is!
and everything else is working now

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -