aspose file tools*
The moose likes Other Open Source Projects and the fly likes changing Log priority Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "changing Log priority" Watch "changing Log priority" New topic
Author

changing Log priority

palakolanusrinu Reddy
Greenhorn

Joined: Jan 03, 2008
Posts: 24
hi
can any one help in this

i'm using appender is
<appender name="CommsFileBySize"
class="org.apache.log4j.RollingFileAppender">
<errorHandler
class="org.apache.log4j.helpers.OnlyOnceErrorHandler" />
<param name="File"
value="${wsc.logs.home}/comms/comms.html"/>
<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" />
</appender>

and category for this appender is

<category name="com.csam.wsc.enabling.comms.CommsLogger">
<priority value="INFO" />
<appender-ref ref="CommsFileBySize"/>
</category>
so
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

regards
Srinu
 
Don't get me started about those stupid light bulbs.
 
subject: changing Log priority
 
Similar Threads
log4j.xml for app log.
Jboss final start up message not comes up in console
Issue in using the DatabaseServerLoginModule for encrypting the password using MD5
invalid console appender .....
How to monitor log file in jboss for sending mails,when error or excetion found in log