### Question:
CommonTracerManager { public static void reportError(CommonLogSpan sofaTracerSpan) { if (sofaTracerSpan == null) { return; } sofaTracerSpan.setLogType(TracerSystemLogEnum.MIDDLEWARE_ERROR.getDefaultLogName()); commonReporterAsyncManager.append(sofaTracerSpan); }  static void register(String logFileName, String rollingPolicy, String logReserveDay); @Deprecated static void register(char logType, String logFileName, String rollingPolicy,
                                String logReserveDay); static boolean isAppenderExist(String logType); static void reportCommonSpan(CommonLogSpan commonLogSpan); static void reportProfile(CommonLogSpan sofaTracerSpan); static void reportError(CommonLogSpan sofaTracerSpan);  }### Answer:
@Test public void testReportError() throws Exception { CommonTracerManager.reportProfile(new CommonLogSpan(this.sofaTracer, System .currentTimeMillis(), "testReportProfile", SofaTracerSpanContext.rootStart(), null)); String logType = TracerSystemLogEnum.RPC_PROFILE.getDefaultLogName(); TestUtil.waitForAsyncLog(); File file = customFileLog(logType); assertTrue(file.exists()); List<String> profileContents = FileUtils.readLines(file); assertTrue(profileContents.toString(), profileContents.size() == 1); }