⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mail-2002-03-27.txt

📁 实现在电脑平台上控制短信modem或手机进行通讯的jar包和相关实例
💻 TXT
字号:
Received: (qmail 12476 invoked from network); 28 Mar 2002 06:19:49 -0000Date: Wed, 27 Mar 2002 22:28:58 -0800From: Kevin Steppe <ksteppe@pacbell.net>Subject: Re: RollingFileAppender and DailyRollingFileAppenderTo: Log4J Users List <log4j-user@jakarta.apache.org>Reply-To: ksteppe@pacbell.netMessage-id: <3CA2B82A.5C366593@pacbell.net>MIME-version: 1.0X-Mailer: Mozilla 4.7 [en] (WinNT; I)Content-type: multipart/mixed; boundary="Boundary_(ID_TnKsnil+d0oYB9TV0P+fgA)"X-Accept-Language: enReferences: <8DAB344CC3F3FE42A51FA1A8E295F8682ACD14@tepg-server2.tepgsyd.tycoint.com.au>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/NI wrote a CompositeRollingAppender last August to do that.  I'm attaching thatcode and some example config files to you separately.Ceki... Could you please put these files in the log4j/contribs/KevinSteppefolder of the available releases?  This seems to be coming up occasionally andit would be more convenient to just point people there.Thanks,KevinJanusz Dalecki wrote:> Is there a way of having the mixture of both RollingFileAppender and> DailyRollingFileAppender options?. I have a requirement to log daily and> delete old files weekly.> Thanks,> Janusz>> --> To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>> For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>#Config file for CompositeRollingAppender#This is an example config to use CompositeRollingAppender in Size based Backups onlylog4j.rootCategory=debug, Rlog4j.appender.R=org.apache.log4j.CompositeRollingAppender#How to perform rolling -- 1 = By Size#Note -- this is the only difference from RollingFileAppender!log4j.appender.R.RollingStyle=1#file to log tolog4j.appender.R.File=example.log#Size Rolling paramslog4j.appender.R.MaxFileSize=10MBlog4j.appender.R.MaxSizeRollBackups=10#layout optionslog4j.appender.R.layout=org.apache.log4j.PatternLayoutlog4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n#Config file for CompositeRollingAppender#This is an example config to use CompositeRollingAppender in Time based Backups onlylog4j.rootCategory=debug, Rlog4j.appender.R=org.apache.log4j.CompositeRollingAppender#How to perform rolling -- 2 = By Time#Note -- this is the only difference from DailyRollingFileAppender!log4j.appender.R.RollingStyle=2#file to log tolog4j.appender.R.File=example.log#Date Rolling paramslog4j.appender.R.datePattern='.'yyyy-MM-dd#layout optionslog4j.appender.R.layout=org.apache.log4j.PatternLayoutlog4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n#Default Config file for CompositeRollingAppenderlog4j.rootCategory=debug, Rlog4j.appender.R=org.apache.log4j.CompositeRollingAppender#How to perform rolling -- Composite is the defaultlog4j.appender.R.RollingStyle=3#Use same file name for all inprocess logging?log4j.appender.R.staticLogFileName=truelog4j.appender.R.File=example.log#Size Rolling paramslog4j.appender.R.CountDirection=-1log4j.appender.R.MaxFileSize=5KBlog4j.appender.R.MaxSizeRollBackups=10#Date Rolling paramslog4j.appender.R.datePattern='.'yyyy-MM-dd#layout optionslog4j.appender.R.layout=org.apache.log4j.PatternLayoutlog4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -