### Question:
EcLogYamlConfig { public String getLogFormat() { return log_format == null ? DEFAULT_FORMAT : log_format; }  String getLogFormat(); Optional<DateTimeFormatter> getTimeFormatter(); public String log_format; public String time_format; public String time_zone; }### Answer:
@Test public void testDefaultLogFormat() { EcLogYamlConfig defaultConfig = new EcLogYamlConfig(); assertThat(defaultConfig.getLogFormat()).isEqualTo("{?${TIMESTAMP}?}{?|${CLIENT_IP}?}{?:${CLIENT_PORT}?}{?|${COORDINATOR_IP}?}{?|${USER}?}{?|${STATUS}?}{?|${BATCH_ID}?}{?|${OPERATION}?}"); }
@Test public void testCustomLogFormat() { EcLogYamlConfig config = new EcLogYamlConfig(); config.log_format = "Custom"; assertThat(config.getLogFormat()).isEqualTo("Custom"); }