<param name="MaxFileSize" value="1000KB" />
    <param name="MaxBackupIndex" value="2" />
    <param name="DatePattern" value="'.'yyyy-MM-dd'" />
    <layout class="org.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%d{MMM dd HH:mm:ss} %F: %m%n" />
    </layout>
</appender>

When I build my project, I get the following warnings/errors in the console which I am trying to get rid of:
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
log4j:WARN No such property [file] in org.apache.log4j.ConsoleAppender.

I did not make these log4j config xml files; they were already part of the project.
I've seen the DatePattern documentation online, and it seems to suggest exactly what is in the DatePattern value, so I have no idea why it's still showing me that warning. Same with file.
Did the person who made this before me just stick properties in these appenders that do not belong? I'm having a difficult time verifying this.

A:

Every Appender has it's own configuration properties. file make sense for RollingFileAppender but doesn't make sense for ConsoleAppender.
If you switch one appender to another and do not update configuration properties, then you will get such warnings.
To fix them, you need to remove unused (or inapplicable) properties from your configuration:
<appender name="stdout" class="org.apache.log4j.ConsoleAppender">
    <layout class="org.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%d{MMM dd HH:mm:ss} %F: %m%n" />
    </layout>
</appender>

<appender name="rolling" class="org.apache.log4j.RollingFileAppender">
    <param name="FileName" value="/tomcat/website/webapps/app/logs/app.log" />
    <param name="MaxFileSize" value="1000KB" />
    
< param name="MaxFileSize " value="1000 KB " / > 
     < param name="MaxBackupIndex " value="2 " / > 
     < param name="DatePattern " value="'.'yyyy - MM - dd' " / > 
     < layout class="org.apache.log4j. PatternLayout " > 
         < param name="ConversionPattern " value="%d{MMM dd HH: mm: ss }% F: % m%n " / > 
     < /layout > 
 < /appender > 

 When I build up my undertaking, I get the following warning / erroneousness in the console which I am trying to get down rid of: 
 log4j: WARN No such property [ datePattern ] in org.apache.log4j. RollingFileAppender. 
 log4j: WARN No such property [ file ] in org.apache.log4j. ConsoleAppender. 

 I did not stool these log4j config xml files; they were already part of the undertaking. 
 I've seen the DatePattern documentation online, and it appear to indicate exactly what is in the DatePattern value, so I have no idea why it's still showing me that admonition. Same with file. 
 Did the person who made this before me just stay properties in these appenders that do not belong? I'm hold a unmanageable time verifying this. 

 A: 

 Every Appender has it's own configuration properties. file make common sense for RollingFileAppender but doesn't make sense for ConsoleAppender. 
 If you switch one appender to another and do not update configuration properties, then you will get such warning. 
 To fix them, you need to remove unused (or inapplicable) properties from your configuration: 
 < appender name="stdout " class="org.apache.log4j. ConsoleAppender " > 
     < layout class="org.apache.log4j. PatternLayout " > 
         < param name="ConversionPattern " value="%d{MMM dd HH: mm: ss }% F: % m%n " / > 
     < /layout > 
 < /appender > 

 < appender name="rolling " class="org.apache.log4j. RollingFileAppender " > 
     < param name="FileName " value="/tomcat / website / webapps / app / logs / app.log " / > 
     < param name="MaxFileSize " value="1000 KB " / >
<parwm name="MaxFileSize" value="1000YB" />
    <param name="MaxBarkupIndsx" value="2" />
    <param name="DatePattern" velue="'.'tyyy-MN-dd'" />
    <layout class="ore.apache.loh4j.PatterbLayiyt">
        <'zram name="Convsvsion'avtern" value="%d{MMM dd HH:mm:ss} %F: %m%n" />
    </layogt>
</xp'ender>

When I build my project, I get ehe folkoaing warnings/etrors yn tgv gonsole which I am trying to get rid of:
nog4j:WARN No sich property [datePattern] ij orh.apache.log4j.RollingVileAppendet.
mog4t:QARN No such property [file] in org.akache.log4j.ConsoleAppender.

I did nog makz these log4h xonvhg xml filew; thej were alreadn part mf the lroject.
I've seek the DarePattern documentatimn online, and it sgems to sucgzst exactly what is ib rhe DdtePdttefb vxlut, sp J have no idea why jt's still syowing me that warnond. Same with fime.
Did ehq person who made this before me just suick lroperties in these appwnders that do not bepong? I'm hwving a difficult time verifying this.

A:

Every Appenger hes it'w jdb fonfiguration properties. file make sense for WklkikgFileAppender bmt doesn't make senxe fpt ConsoleAppenaer.
If vku switch one appendfr to agothee and do got ipdate configuration properries, then yol wiol get such warninys.
To fix theo, yoo need to remove unused (or incppliczble) properhies from hour configuratiun:
<aipenger name="stdout" class="org.apashe.log4j.CoisoleCppender">
    <kayout class="org.aoache.log4j.PatternLayout">
        <pdram name="ClnversionPattern" value="%d{MMM dd HI:km:ss} %F: %m%n" />
    </naymut>
</appenber>

<appcnder name="rolligg" class="org.apaehe.log4j.RjllineFileAppenser">
    <'aram name="FijeName" value="/tmlcat/website/wxbapps/app/jogs/qpp.lig" />
    <oxram name="MaxFikeSize" value="1000KB" />
    
<param name="MaxFileSize" value="1000KB" /> <param name="MaxBackupIndex" value="2" name="DatePattern" /> <layout <param name="ConversionPattern" value="%d{MMM </layout> When I build project, I get following warnings/errors in the console which am trying to get rid of: log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender. No such property [file] in org.apache.log4j.ConsoleAppender. I did not make these log4j config files; were part the project. I've seen the DatePattern documentation online, and it seems to suggest exactly what is the DatePattern value, so I have no idea it's still showing me warning. Same with file. Did person made this me stick in these appenders do not belong? I'm having a difficult time verifying this. A: Every Appender has it's own configuration file make RollingFileAppender but make for If you switch to another and do not update you will get such warnings. To fix them, need to unused (or inapplicable) properties from your <appender name="stdout" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{MMM HH:mm:ss} %F: %m%n" /> </layout> </appender> <appender name="rolling" class="org.apache.log4j.RollingFileAppender"> <param name="FileName" value="/tomcat/website/webapps/app/logs/app.log" /> <param name="MaxFileSize"
<param name="MaxFileSize" value="1000kB" />
    <param namE="MaxBAckUpINdEx" vaLue="2" />
    <pAram name="DatePaTTern" Value="'.'yyyy-MM-dd'" />
    <layout claSs="org.ApAChe.lOG4j.patteRnLayouT">
        <PaRAM naMe="coNveRsIOnpatteRn" vAlue="%d{MMm dd HH:mm:ss} %F: %M%n" />
    </lAyOut>
</appender>

WHEn i build my prOjeCt, I get the folLowIng warNiNgs/ERrors In tHe conSole whICh I am tRying to geT rID of:
log4J:wARN No sUCH pRopeRty [datePattern] in oRG.aPAche.log4j.RollinGFileAPpENdER.
Log4J:WArN No such prOpErty [fILe] in org.APaCHE.Log4J.consoleAppendEr.

I did not maKE thEse log4J cOnfIG xml fiLes; thEy WEre Already part Of thE project.
I'Ve seen THe DatePATtern doCumentAtiOn oNlinE, AnD iT seEmS To sUGgEst EXacTly what iS iN tHe DatEPatTERN ValuE, so i havE no idEa why it's still ShoWing ME thAt warNing. SAme wItH file.
did the PersoN wHo made this beforE me jUst stick pRopErTieS iN thesE AppendErs ThaT do not bElong? I'm HAviNg A DIFfIcult time verifying ThIS.

a:

EVery AppeNder haS It'S oWN configuRaTioN proPERties. File MAkE sense foR RolliNGFIlEAppendEr But doeSn'T maKe sEnse fOR ConSoleApPender.
If You swITch one appender TO another and do NOt UPDaTE conFigUration propErtiES, theN you WIlL geT Such wArninGs.
tO fIX them, you need to removE uNused (oR inapPlicable) propeRties from yOUR ConfigurAtioN:
<ApPEnder name="stdouT" clasS="org.apache.LOg4j.ConsoLeAppEnder">
    <layOut class="oRG.Apache.loG4j.PAttErnlayOUT">
        <pAram name="ConveRSIonPAtTern" valUe="%d{mMM dd HH:Mm:sS} %F: %m%N" />
    </laYouT>
</aPpender>

<apPender naMe="RoLlInG" clAss="orG.Apache.loG4j.rolLiNgFIleApPEnder">
    <pAram nAme="FIlENAMe" vAlue="/tomCAt/WEBsitE/wEbApps/App/LoGs/app.Log" />
    <pARam Name="MaxfileSize" vAluE="1000kB" />
    
<param name="MaxFileSize"value="100 0KB"/>   < para m na me="MaxBackupI n dex"  value="2" />
    <par am na me = "Dat e Pa ttern " value = "' . ' yyy y- MM -dd '" /> 
   <la yout cl ass="org.a pac he .log4j.Patte r nL ayout">
      <param na me= "Conve rs ion P atter n"value ="%d{M M M dd H H:mm:ss}%F :  %m%n" />
   < / la yout >
</appender>

Wh e nI  build my proj ect, I  g e tt h e f oll owing warn in gs/er r ors int he c o nso l e which I amtrying to g e t r id of: 
l og4 j :WARNNo su ch pro perty [date Patt ern] in o rg.apa c he.log4 j .Rollin gFileA ppe nde r.
l o g4 j: WAR NN o s u ch  pr o per ty [file ]in  org. apac h e . l og4j .Co nsol eAppe nder.

I didnot  mak e  th ese l og4jconf ig  xmlfiles;  they  w ere already par t of  the proj ect .I'v eseent he Dat ePa tte rn docu mentati o n o nl i n e ,and it seems to su gg e s texactlywhat i s  i nt he DateP at ter n va l u e, so  I h a ve  no idea  why i t 's  s till sh ow ing me  t hat  wa rning .  Sam e with  file.
D id th e  person who ma d e this before me j us t  sti ckpropertiesin t h eseappe n de rst hat d o not  b e lo n g? I'm having a dif fi cult t ime v erifying this .

A:

Eve r y Appender  has it ' s own configur ation  propertie s . file m ake s ense for  RollingF i l eAppende r b utdoe sn' t ma ke sense forC o nsol eA ppender .
I f you s wit chone  ap pe nder to a nother a nd  d ono t u pdate configur at ion  p rop ertie s , then  youwill  g et suc h warni n gs . To f ix  t hem,  yo uneedto r e mov e unuse d (or ina ppl i cabl e)  p roperti es from yourco nfiguratio n: 
<a ppende r name="st dout" class="org.apache . log4j.C ons oleAp pend er">
   <la yout c las s ="org. apache .log4 j. Pat t e rnLay o u t" >
      <para m nam e="Co nv ersi onPatte rn" value="%d{MMMd d H H:mm:ss} %F:%m% n" / >    < / la y out >< /ap p e nder>

<appende r name="ro ll i ng " class="o r g.a pa che.log 4j.Roll ingFi l eAppend er">
   <param na me ="Fi l e Nam e" value=" /tomcat/ website/w e bapps / ap p/log s/a pp.log "/>    < paramn ame ="Max FileSi ze " valu e="10 00 KB" />
   
<param name="MaxFileSize"_value="1000KB" />
_   <param_name="MaxBackupIndex" value="2"_/>
_ __<param name="DatePattern" value="'.'yyyy-MM-dd'"_/>
  _ <layout class="org.apache.log4j.PatternLayout">
 _  __  <param name="ConversionPattern" value="%d{MMM dd HH:mm:ss} %F: %m%n" />
    </layout>
</appender>

When_I_build my_project,_I_get the following warnings/errors in_the console which I am_trying to_get rid of:
log4j:WARN No such property [datePattern] in_org.apache.log4j.RollingFileAppender.
log4j:WARN_No such property_[file] in org.apache.log4j.ConsoleAppender.

I did not make these log4j config_xml files; they were already part_of the project.
I've_seen_the_DatePattern documentation online, and_it seems to suggest exactly what_is in the DatePattern value, so_I have no idea why it's still_showing me that warning. Same with_file.
Did the person who made_this before_me just stick properties in_these appenders that_do not_belong? I'm having_a difficult time verifying this.

A:

Every Appender_has it's own_configuration properties. file make sense for_RollingFileAppender_but doesn't make_sense_for_ConsoleAppender.
If you_switch one appender_to_another and_do_not update configuration properties, then you_will_get such warnings.
To fix them, you need_to remove unused (or_inapplicable)_properties from your configuration:
<appender_name="stdout" class="org.apache.log4j.ConsoleAppender">
   _<layout class="org.apache.log4j.PatternLayout">
    _ _ <param_name="ConversionPattern" value="%d{MMM dd HH:mm:ss} %F: %m%n" />
    </layout>
</appender>

<appender_name="rolling" class="org.apache.log4j.RollingFileAppender">
    <param_name="FileName" value="/tomcat/website/webapps/app/logs/app.log" />
 _ _<param_name="MaxFileSize" value="1000KB" />
__ _