Minor changes to distribution's log4j config file to include the messagelog logger
This commit is contained in:
@@ -53,4 +53,3 @@ log4j.appender.messagelog.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.messagelog.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %c{1} %L %x - %m%n
|
||||
|
||||
log4j.category.messageLogger=WARN, messagelog
|
||||
#log4j.additivity.messageLogger=false
|
||||
|
||||
@@ -31,3 +31,17 @@ log4j.appender.file.MaxFileSize=1MB
|
||||
log4j.appender.file.MaxBackupIndex=1
|
||||
log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.file.layout.ConversionPattern=%-4r [%t] %-5p %c{1} %x - %m%n
|
||||
|
||||
|
||||
####################################
|
||||
# Message Logger Configuration #
|
||||
#####################################
|
||||
log4j.appender.messagelog=org.apache.log4j.RollingFileAppender
|
||||
log4j.appender.messagelog.Threshold=WARN
|
||||
log4j.appender.messagelog.File=moquette_messages.log
|
||||
log4j.appender.messagelog.MaxFileSize=100MB
|
||||
log4j.appender.messagelog.MaxBackupIndex=1
|
||||
log4j.appender.messagelog.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.messagelog.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %c{1} %L %x - %m%n
|
||||
|
||||
log4j.category.messageLogger=WARN, messagelog
|
||||
@@ -57,13 +57,14 @@ public class MoquetteOsgiTest {
|
||||
@Test
|
||||
public void testCanFindOsgiBundle() throws Exception {
|
||||
for (Bundle b : bundleContext.getBundles()) {
|
||||
System.out.format("%s %d\n", b.getSymbolicName(), b.getState());
|
||||
if (b.getSymbolicName().indexOf("moquette") != -1) {
|
||||
String symbolicName = b.getSymbolicName();
|
||||
System.out.format("%s %d\n", symbolicName, b.getState());
|
||||
if (symbolicName != null && symbolicName.indexOf("moquette") != -1) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// If found no bundles with moquette in the name, fail the test.
|
||||
fail();
|
||||
fail();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user