@Test public void testLogFormat() { Layout innerLayout = LoggingBuilder.newLayoutBuilder().withDefaultLayout().build(); LoggingEvent loggingEvent = new LoggingEvent(Logger.class.getName(), logger, org.apache.rocketmq.logging.inner.Level.INFO, "junit test error", null); String format = innerLayout.format(loggingEvent); System.out.println(format); }
public abstract String format(LoggingEvent event);
Layout { public abstract String format(LoggingEvent event); }
Layout { public abstract String format(LoggingEvent event);  }
Layout { public abstract String format(LoggingEvent event);  abstract String format(LoggingEvent event); String getContentType(); String getHeader(); String getFooter(); abstract boolean ignoresThrowable(); }
Layout { public abstract String format(LoggingEvent event);  abstract String format(LoggingEvent event); String getContentType(); String getHeader(); String getFooter(); abstract boolean ignoresThrowable();  }