Update the access logger so that it will not suppress internal operations when
running the test cases.
| | |
| | | |
| | | AccessLogPublisher startupAccessPublisher = |
| | | TextAccessLogPublisher.getStartupTextAccessPublisher( |
| | | accessWriter); |
| | | accessWriter, true); |
| | | AccessLogger.addAccessLogPublisher( |
| | | DN.decode("cn=QuickSetup,cn=Loggers,cn=config"), |
| | | startupAccessPublisher); |
| | |
| | | * to the console when the server starts up. |
| | | * |
| | | * @param writer The text writer where the message will be written to. |
| | | * @param suppressInternal Indicates whether to suppress internal operations. |
| | | * @return The instance of the text error log publisher that will print |
| | | * all messages to standard out. |
| | | */ |
| | | public static TextAccessLogPublisher |
| | | getStartupTextAccessPublisher(TextWriter writer) |
| | | getStartupTextAccessPublisher(TextWriter writer, boolean suppressInternal) |
| | | { |
| | | TextAccessLogPublisher startupPublisher = new TextAccessLogPublisher(); |
| | | startupPublisher.writer = writer; |
| | | startupPublisher.suppressInternalOperations = suppressInternal; |
| | | |
| | | return startupPublisher; |
| | | } |
| | |
| | | |
| | | TextAccessLogPublisher startupAccessPublisher = |
| | | TextAccessLogPublisher.getStartupTextAccessPublisher( |
| | | TestListener.ACCESS_TEXT_WRITER); |
| | | TestListener.ACCESS_TEXT_WRITER, false); |
| | | AccessLogger.removeAllAccessLogPublishers(); |
| | | AccessLogger.addAccessLogPublisher(DN.decode("cn=Test Access Publisher"), |
| | | startupAccessPublisher); |