コード例 #1
0
 internal RollingFileAppender(IElementConfiguration configuration)
     : base(configuration)
 {
     mDatePattern = new DatePattern(Properties);
     mMaximumFileSize = new MaximumFileSize(Properties);
     mCountDirection = new CountDirection(Properties);
 }
コード例 #2
0
 internal RollingFileAppender(IElementConfiguration configuration)
     : base(configuration)
 {
     mDatePattern      = new DatePattern();
     mMaximumFileSize  = new MaximumFileSize();
     mCountDirection   = new CountDirection();
     mDateTimeStrategy = new StringValueProperty("Date Time Strategy:", "dateTimeStrategy", Log4NetXmlConstants.Type)
     {
         ToolTip = "Sets the strategy for determining the current date and time.\n" +
                   "The default implementation is to use LocalDateTime (log4net.Appender.RollingFileAppender+LocalDateTime,log4net) which internally calls through to DateTime.Now.\n" +
                   "DateTime.UtcNow may be used on frameworks newer than .NET 1.0 by specifying UniversalDateTime (log4net.Appender.RollingFileAppender+UniversalDateTime,log4net).\n" +
                   "A custom implementation that implements IDateTime can be specified here as well. Leave blank to use LocalDateTime."
     };
 }
コード例 #3
0
 public void SetUp()
 {
     mSut = new MaximumFileSize(new ReadOnlyCollection <IProperty>(new List <IProperty>()));
 }
コード例 #4
0
 public void SetUp()
 {
     mSut = new MaximumFileSize();
 }