Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing Log priority

palakolanusrinu Reddy
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one help in this

i'm using appender is
<appender name="CommsFileBySize"
class="org.apache.log4j.helpers.OnlyOnceErrorHandler" />
<param name="File"
<param name="Append" value="true" />
<param name="MaxFileSize" value="5KB" />
<param name="MaxBackupIndex" value="20" />
<layout class="com.csam.wsc.projects.ri.util.logging.layout.CsamHtmlLayout" />

and category for this appender is

<category name="com.csam.wsc.enabling.comms.CommsLogger">
<priority value="INFO" />
<appender-ref ref="CommsFileBySize"/>
1) i'm changing priority value DEBUG to INFO but still its printing all DEBUG messages and ERROR messages how to print only INFO messages?

2) and i'm giving Max File Size is 5kb but some time file size is exceeding to 5kb how to restrict to 5 kb only?

its urgent can any one help in this

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic