You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Narendran Mangadu Chakkaravarthy <mn...@chn.cognizant.com> on 2003/06/23 13:02:33 UTC
SMTP - Mail Content Size
Hi,
I am using SMTP Appender. The body of the mail send by the SMTP Appender will include messages and exception traces.
But if the exception trace is too large the recipient might not be able to receive that. So is there any configuration attribute specifying the maximum number of bytes
that the content will include and the rest will be truncated by SMTPAppender.
Any help will be appreciable.
Regards,
Narendran MC
Cognizant Technology Solutions Ltd
Ph no- 044 28113063 - 2270
RE: Clearing Logs Files on the fly
Posted by vikaas Karwal <vi...@in.niksun.com>.
Dear All,
I am using Log4j and I want to clear the log files i.e want to make the
files of 0kb and then fresh logs will be written to it.
Could you please suggest the best possible way to accomplish it? Is
there any configuration parameter in log4j.properties.
Following is the code snippet of log4j.properties file.
log4j.appender.Event.MaxFileSize=256KB
log4j.appender.Event=org.apache.log4j.RollingFileAppender
log4j.appender.Event.layout=org.apache.log4j.PatternLayout
log4j.appender.Event.MaxBackupIndex=4
Thanks..