docs: @Override
      public synchronized void writeRecord(String record) {
          long length = record.length() + LoggingConstants.nlen;
          PrintStream ps = getPrintStream(length);
          ps.println(record);
          if (ps.checkError()) {
              setStreamStatus(StreamStatus.CLOSED, null, null, DummyOutputStream.psInstance);
              // to avoid junit test to print an error message
              if (System.getProperty("test.classesDir") == null && System.getProperty("test.buildDir") == null) {
                  System.err.println(Tr.formatMessage(getTc(), "FAILED_TO_WRITE_LOG", new Object[] { getPrimaryFile().getAbsolutePath() }));
              }
          }
      }