private void printHeader(final PrintWriter printWriter, final int messageLevel,
      final Date messageDate, final String connectionName, final String threadName,
      final long threadId) {
    printWriter.println();
    printWriter.print('[');
    printWriter.print(levelToString(messageLevel));
    printWriter.print(' ');
    printWriter.print(formatDate(messageDate));
    if (connectionName != null) {
      printWriter.print(' ');
      printWriter.print(connectionName);
    }
    if (threadName != null) {
      printWriter.print(" <");
      printWriter.print(threadName);
      printWriter.print(">");
    }
    printWriter.print(" tid=0x");
    printWriter.print(Long.toHexString(threadId));
    printWriter.print("] ");
  }
Logs a message and an exception to the specified log destination.

@param messageLevel a string representation of the level
@param messageId the actual message to log
@param throwable the actual Exception to log
geode-core/src/main/java/org/apache/geode/internal/logging/PureLogWriter.java