alma::acs::logging::TestAcsXMLLogFormatter Class Reference

Inheritance diagram for alma::acs::logging::TestAcsXMLLogFormatter:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::TestAcsXMLLogFormatter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

String format (LogRecord logRecord)

Package Functions

void setFormatFailureChance (double formatFailureChance)

Private Attributes

double formatFailureChance = 0.0
Random random = new Random(System.currentTimeMillis())

Member Function Documentation

String alma::acs::logging::TestAcsXMLLogFormatter::format ( LogRecord  logRecord  )  [inline]

Constructs the XML log message that can be sent to the ACS logging service.

See also:
java.util.logging.Formatter::format(java.util.logging.LogRecord)

Reimplemented from alma::acs::logging::formatters::AcsXMLLogFormatter.

References formatFailureChance, and random.

void alma::acs::logging::TestAcsXMLLogFormatter::setFormatFailureChance ( double  formatFailureChance  )  [inline, package]

Sets the chance that a call to format will fail with an exception

Parameters:
formatFailureChance probability between 0.0 and 1.0 inclusive

Referenced by alma::acs::logging::RemoteLogDispatcherTest::testFailingRecords().


Member Data Documentation

Referenced by format().

Random alma::acs::logging::TestAcsXMLLogFormatter::random = new Random(System.currentTimeMillis()) [private]

Referenced by format().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2