Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::CollectingLogger Class Reference

List of all members.

Public Member Functions

 CollectingLogger (String name, String resourceBundleName)
void produceLogs1 (int number)

Private Member Functions

void sleep (long millis)

Detailed Description

Creates a Logger that collects all LogRecords produced by calls to the various log methods. This can be used to generate valid LogRecords for unit tests.

Author:
hsommer created Apr 20, 2005 2:30:47 PM


Constructor & Destructor Documentation

alma::acs::logging::CollectingLogger::CollectingLogger String  name,
String  resourceBundleName
[inline]
 

Don't use this ctor directly! Instead, use LogRecordCollectingLogger#getCollectingLogger(java.lang.String, java.lang.Class), passing CollectingLogger.class as the second argument. (This is some experiment, so don't ask why...)

Parameters:
name 
resourceBundleName 


Member Function Documentation

void alma::acs::logging::CollectingLogger::produceLogs1 int  number  )  [inline]
 

Produces a sequence of LogRecords which can be obtained in getCollectedLogRecords(). Output is limited by the number parameter. The algorithm is:

  1. INFO
  2. SEVERE with exception
  3. FINE
  4. alternating INFO and FINEST
Parameters:
number 

void alma::acs::logging::CollectingLogger::sleep long  millis  )  [inline, private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:42 2009 for ACS Java API by doxygen 1.3.8