SLF4JLog extends AbstractLog { public void onEvent(String text) { log(eventLog, text); } SLF4JLog(SessionID sessionID, String eventCategory, String errorEventCategory,
            String incomingMsgCategory, String outgoingMsgCategory, boolean prependSessionID,
            boolean logHeartbeats, String inCallerFQCN); void onEvent(String text); void onErrorEvent(String text); void clear(); static final String DEFAULT_EVENT_CATEGORY; static final String DEFAULT_ERROR_EVENT_CATEGORY; static final String DEFAULT_INCOMING_MSG_CATEGORY; static final String DEFAULT_OUTGOING_MSG_CATEGORY; }
@Test public void testLog4j_correctFQCN() throws Exception { final MyLog4JLog myLog4j = new MyLog4JLog(); final SLF4JLog slf4jLog = new MySLF4JLog(new SessionID("FIX.4.2", "sender", "target"), "my-caller-fqcn", myLog4j); final String loggedText = "TEST123"; slf4jLog.onEvent(loggedText); assertEquals(1, myLog4j.messages.size()); assertEquals("my-caller-fqcn", myLog4j.fqcns.get(0)); assertEquals("TEST123", myLog4j.messages.get(0)); slf4jLog.close(); }