@Test
public void errorWithTraceId() throws IOException {

    SynchronizingSelfLog.errorWithTraceId("test error with tracerId", "tracerId:1234567890");
    SynchronizingSelfLog.flush();
    File log = customFileLog("sync.log");
    List<String> logs = FileUtils.readLines(log);
    assertTrue(logs.toString(), logs.get(0).contains("[ERROR]"));
    assertTrue(logs.toString(), logs.get(0).contains("[tracerId:1234567890]"));
}