Asp.net源码专业站
首页->商务办公->无忧之源招聘系统及Log4Net源码>>log4net/Appender/BufferingAppenderSkeleton.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:无忧之源招聘系统及Log4Net源码
当前文件:文件类型 51Job/log4net/Appender/BufferingAppenderSkeleton.cs[21K,2009-6-12 11:31:08]打开代码结构图
普通视图
		            
1Copyright & License 18 19using System; 20using System.Collections; 21 22using log4net.Util; 23using log4net.Core; 24 25namespace log4net.Appender 26{ 27 /// <summary> 28 /// Abstract base class implementation of <see cref="IAppender"/> that 29 /// buffers events in a fixed size buffer. 30 /// </summary> 31 /// <remarks> 32 /// <para> 33 /// This base class should be used by appenders that need to buffer a 34 /// number of events before logging them. For example the <see cref="AdoNetAppender"/> 35 /// buffers events and then submits the entire contents of the buffer to 36 /// the underlying database in one go. 37 /// </para> 38 /// <para> 39 /// Subclasses should override the <see cref="SendBuffer(LoggingEvent[])"/> 40 /// method to deliver the buffered events. 41 /// </para> 42 /// <para>The BufferingAppenderSkeleton maintains a fixed size cyclic 43 /// buffer of events. The size of the buffer is set using 44 /// the <see cref="BufferSize"/> property. 45 /// </para> 46 /// <para>A <see cref="ITriggeringEventEvaluator"/> is used to inspect 47 /// each event as it arrives in the appender. If the <see cref="Evaluator"/> 48 /// triggers, then the current buffer is sent immediately 49 /// (see <see cref="SendBuffer(LoggingEvent[])"/>). Otherwise the event 50 /// is stored in the buffer. For example, an evaluator can be used to 51 /// deliver the events immediately when an ERROR event arrives. 52 /// </para> 53 /// <para> 54 /// The buffering appender can be configured in a <see cref="Lossy"/> mode. 55 /// By default the appender is NOT lossy. When the buffer is full all 56 /// the buffered events are sent with <see cref="SendBuffer(LoggingEvent[])"/>. 57 /// If the <see cref="Lossy"/> property is set to <c>true</c> then the 58 /// buffer will not be sent when it is full, and new events arriving 59 /// in the appender will overwrite the oldest event in the buffer. 60 /// In lossy mode the buffer will only be sent when the <see cref="Evaluator"/> 61 /// triggers. This can be useful behavior when you need to know about 62 /// ERROR events but not about events with a lower level, configure an 63 /// evaluator that will trigger when an ERROR event arrives, the whole 64 /// buffer will be sent which gives a history of events leading up to 65 /// the ERROR event. 66 /// </para> 67 /// </remarks> 68 /// <author>Nicko Cadell</author> 69 /// <author>Gert Driesen</author> 70 public abstract class BufferingAppenderSkeleton : AppenderSkeleton 71 { 72 Protected Instance Constructors Protected Instance Constructors 107 108 Public Instance Properties Public Instance Properties 260 261 Public Methods Public Methods 352 353 Implementation of IOptionHandler Implementation of IOptionHandler 394 395 Override implementation of AppenderSkeleton Override implementation of AppenderSkeleton 519 520 Protected Instance Methods Protected Instance Methods 556 557 /// <summary> 558 /// Sends the events. 559 /// </summary> 560 /// <param name="events">The events that need to be send.</param> 561 /// <remarks> 562 /// <para> 563 /// The subclass must override this method to process the buffered events. 564 /// </para> 565 /// </remarks> 566 abstract protected void SendBuffer(LoggingEvent[] events); 567 568 Private Static Fields Private Static Fields 580 581 Private Instance Fields Private Instance Fields 645 } 646} 647
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:无忧之源招聘系统及Log4Net源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146