

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()) |
| String alma::acs::logging::TestAcsXMLLogFormatter::format | ( | LogRecord | logRecord | ) | [inline] |
Constructs the XML log message that can be sent to the ACS logging service.
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
| formatFailureChance | probability between 0.0 and 1.0 inclusive |
Referenced by alma::acs::logging::RemoteLogDispatcherTest::testFailingRecords().
double alma::acs::logging::TestAcsXMLLogFormatter::formatFailureChance = 0.0 [private] |
Referenced by format().
Random alma::acs::logging::TestAcsXMLLogFormatter::random = new Random(System.currentTimeMillis()) [private] |
Referenced by format().
1.6.2