Class HytaleConsole

java.lang.Object
java.lang.Thread
com.hypixel.hytale.logger.backend.HytaleConsole
All Implemented Interfaces:
Runnable

public class HytaleConsole extends Thread
  • Field Details

  • Method Details

    • publish

      public void publish(@Nonnull LogRecord logRecord)
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • shutdown

      public void shutdown()
    • setTerminal

      public void setTerminal(String type)
    • setAbovePromptPrinter

      public void setAbovePromptPrinter(@Nullable Consumer<String> printer)
      Routes console output through the given printer (typically LineReader::printAbove) so log lines are drawn above an active prompt rather than into the line being edited. Pass null to restore direct writes (e.g. before the terminal is closed on shutdown).
    • getFormatter

      public HytaleLogFormatter getFormatter()