
Public Member Functions | |
| ClientLogManagerTest (String name) | |
| void | testLoggerStructure () |
| void | testLoggerNameUniqueness () |
| void | testShutdown () |
| void | testSuppressRemoteLoggingAndCheckGC () throws Exception |
| void | testSuppressCorbaRemoteLogging () |
| void | testConfigureApplicationLogger () |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Package Attributes | |
| ClientLogManager | clientLogManager |
| Logger | m_logger = null |
Private Member Functions | |
| void | assertLogLevels (AcsLogger logger, AcsLogLevelDefinition expectedLocalLevel, AcsLogLevelDefinition expectedRemoteLevel) |
Tests the class ClientLogManager, which creates and configures all ACS loggers.
| alma::acs::logging::ClientLogManagerTest::ClientLogManagerTest | ( | String | name | ) | [inline] |
| void alma::acs::logging::ClientLogManagerTest::assertLogLevels | ( | AcsLogger | logger, | |
| AcsLogLevelDefinition | expectedLocalLevel, | |||
| AcsLogLevelDefinition | expectedRemoteLevel | |||
| ) | [inline, private] |
Checks that an AcsLogger has local and remote handlers configured with the correct levels.
Referenced by testConfigureApplicationLogger().
| void alma::acs::logging::ClientLogManagerTest::setUp | ( | ) | throws Exception [inline, protected] |
References clientLogManager, and alma::acs::logging::ClientLogManager::getAcsLogManager().
| void alma::acs::logging::ClientLogManagerTest::tearDown | ( | ) | throws Exception [inline, protected] |
References clientLogManager, and alma::acs::logging::ClientLogManager::shutdown().
| void alma::acs::logging::ClientLogManagerTest::testConfigureApplicationLogger | ( | ) | [inline] |
As of ACS 8.0.0, it is not possible to configure application loggers via the CDB. This test demonstrates how to do it programmatically, as a workaround.
References assertLogLevels(), clientLogManager, alma::acs::logging::ClientLogManager::getLogConfig(), alma::acs::logging::ClientLogManager::getLoggerForApplication(), alma::acs::logging::config::LogConfig::setDefaultMinLogLevel(), and alma::acs::logging::config::LogConfig::setDefaultMinLogLevelLocal().
| void alma::acs::logging::ClientLogManagerTest::testLoggerNameUniqueness | ( | ) | [inline] |
| void alma::acs::logging::ClientLogManagerTest::testLoggerStructure | ( | ) | [inline] |
| void alma::acs::logging::ClientLogManagerTest::testShutdown | ( | ) | [inline] |
| void alma::acs::logging::ClientLogManagerTest::testSuppressCorbaRemoteLogging | ( | ) | [inline] |
References clientLogManager, alma::acs::logging::ClientLogManager::getLogConfig(), alma::acs::logging::ClientLogManager::getLoggerForContainer(), alma::acs::logging::ClientLogManager::getLoggerForCorba(), alma::acs::logging::config::LogConfig::getLoggerNames(), alma::acs::logging::config::LogConfig::setDefaultMinLogLevel(), alma::acs::logging::config::LogConfig::setDefaultMinLogLevelLocal(), and alma::acs::logging::ClientLogManager::suppressCorbaRemoteLogging.
| void alma::acs::logging::ClientLogManagerTest::testSuppressRemoteLoggingAndCheckGC | ( | ) | throws Exception [inline] |
The ClientLogManager shutdown called in method tearDown is an important part of this test.
| Exception |
References alma::acs::logging::ClientLogManager::getLoggerForContainer(), and alma::acs::logging::ClientLogManager::suppressRemoteLogging().
Logger alma::acs::logging::ClientLogManagerTest::m_logger = null [package] |
1.6.2