Keel 2.1RC2

org.apache.log.output.test
Class TestRotatingFileOutputLogTarget

java.lang.Object
  extended byorg.apache.log.output.test.TestRotatingFileOutputLogTarget

public class TestRotatingFileOutputLogTarget
extends java.lang.Object

Author:

Field Summary
private  RawFormatter m_formatter
           
 
Constructor Summary
TestRotatingFileOutputLogTarget()
           
 
Method Summary
private  void doTest(Logger logger)
           
private  int generateMessages(Logger logger, int i, long totalSize, long diffTime)
          just generate some logger messages
private  Logger getLogger(FileStrategy fileStrategy, RotateStrategy rotateStrategy)
           
static void main(java.lang.String[] args)
           
 void testSizeRevoling()
          test file rotation by size, using revolving filenames
 void testSizeUnique()
          test file rotation by size, using unique filenames
 void testTimeRevolving()
          test file rotation by time, using revolving filenames
 void testTimeUnique()
          test file rotation by time, using unique filenames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_formatter

private RawFormatter m_formatter
Constructor Detail

TestRotatingFileOutputLogTarget

public TestRotatingFileOutputLogTarget()
Method Detail

testSizeUnique

public void testSizeUnique()
                    throws java.lang.Exception
test file rotation by size, using unique filenames

Throws:
java.lang.Exception

testSizeRevoling

public void testSizeRevoling()
                      throws java.lang.Exception
test file rotation by size, using revolving filenames

Throws:
java.lang.Exception

testTimeUnique

public void testTimeUnique()
                    throws java.lang.Exception
test file rotation by time, using unique filenames

Throws:
java.lang.Exception

testTimeRevolving

public void testTimeRevolving()
                       throws java.lang.Exception
test file rotation by time, using revolving filenames

Throws:
java.lang.Exception

doTest

private void doTest(Logger logger)

generateMessages

private int generateMessages(Logger logger,
                             int i,
                             long totalSize,
                             long diffTime)
just generate some logger messages


getLogger

private Logger getLogger(FileStrategy fileStrategy,
                         RotateStrategy rotateStrategy)
                  throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.