@Test public void testLogging() throws Exception { LoggingService s1 = new LoggingService(LoggingLevel.ERROR, "Metadata key set to [%message{the-metadata-key}]"); LoggingService s2 = new LoggingService(LoggingLevel.DEBUG, "Metadata key set to [%message{the-metadata-key}]") .withLogCategory(this.getClass().getCanonicalName()); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage("hello"); msg.addMetadata("the-metadata-key", "hello world"); assertEquals("Metadata key set to [hello world]", msg.resolve(s1.getText())); execute(s1, msg); execute(s2, msg); }
public String getText() { return text; }
LoggingService extends LoggingServiceImpl { public String getText() { return text; } }
LoggingService extends LoggingServiceImpl { public String getText() { return text; } LoggingService();  LoggingService(LoggingLevel level, String text); }
LoggingService extends LoggingServiceImpl { public String getText() { return text; } LoggingService();  LoggingService(LoggingLevel level, String text); void doService(AdaptrisMessage msg); String getText(); void setText(String s); }
LoggingService extends LoggingServiceImpl { public String getText() { return text; } LoggingService();  LoggingService(LoggingLevel level, String text); void doService(AdaptrisMessage msg); String getText(); void setText(String s);  }