Class GeyserStandaloneLogger

java.lang.Object
net.minecrell.terminalconsole.SimpleTerminalConsole
org.geysermc.geyser.platform.standalone.GeyserStandaloneLogger
All Implemented Interfaces:
org.geysermc.geyser.api.command.CommandSource, org.geysermc.geyser.command.GeyserCommandSource, org.geysermc.geyser.GeyserLogger

public class GeyserStandaloneLogger extends net.minecrell.terminalconsole.SimpleTerminalConsole implements org.geysermc.geyser.GeyserLogger, org.geysermc.geyser.command.GeyserCommandSource
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.jline.reader.LineReader
    buildReader(org.jline.reader.LineReaderBuilder builder)
     
    void
    debug(String message)
     
    void
    debug(String message, Object... arguments)
     
    void
    error(String message)
     
    void
    error(String message, Throwable error)
     
    void
    info(String message)
     
    boolean
     
    protected boolean
     
    protected void
     
    void
    setDebug(boolean debug)
     
    static void
    Sets up System.out and System.err to redirect to log4j.
    void
    severe(String message)
     
    void
    severe(String message, Throwable error)
     
    protected void
     
    void
    warning(String message)
     

    Methods inherited from class net.minecrell.terminalconsole.SimpleTerminalConsole

    processInput, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.geysermc.geyser.api.command.CommandSource

    sendMessage

    Methods inherited from interface org.geysermc.geyser.command.GeyserCommandSource

    connection, handle, locale, sendLocaleString, sendLocaleString, sendMessage

    Methods inherited from interface org.geysermc.geyser.GeyserLogger

    debug, debug, hasPermission, info, isConsole, name, playerUuid, sendMessage
  • Constructor Details

    • GeyserStandaloneLogger

      public GeyserStandaloneLogger()
  • Method Details

    • setupStreams

      public static void setupStreams()
      Sets up System.out and System.err to redirect to log4j.
    • buildReader

      protected org.jline.reader.LineReader buildReader(org.jline.reader.LineReaderBuilder builder)
      Overrides:
      buildReader in class net.minecrell.terminalconsole.SimpleTerminalConsole
    • isRunning

      protected boolean isRunning()
      Specified by:
      isRunning in class net.minecrell.terminalconsole.SimpleTerminalConsole
    • runCommand

      protected void runCommand(String line)
      Specified by:
      runCommand in class net.minecrell.terminalconsole.SimpleTerminalConsole
    • shutdown

      protected void shutdown()
      Specified by:
      shutdown in class net.minecrell.terminalconsole.SimpleTerminalConsole
    • severe

      public void severe(String message)
      Specified by:
      severe in interface org.geysermc.geyser.GeyserLogger
    • severe

      public void severe(String message, Throwable error)
      Specified by:
      severe in interface org.geysermc.geyser.GeyserLogger
    • error

      public void error(String message)
      Specified by:
      error in interface org.geysermc.geyser.GeyserLogger
    • error

      public void error(String message, Throwable error)
      Specified by:
      error in interface org.geysermc.geyser.GeyserLogger
    • warning

      public void warning(String message)
      Specified by:
      warning in interface org.geysermc.geyser.GeyserLogger
    • info

      public void info(String message)
      Specified by:
      info in interface org.geysermc.geyser.GeyserLogger
    • debug

      public void debug(String message)
      Specified by:
      debug in interface org.geysermc.geyser.GeyserLogger
    • debug

      public void debug(String message, Object... arguments)
      Specified by:
      debug in interface org.geysermc.geyser.GeyserLogger
    • setDebug

      public void setDebug(boolean debug)
      Specified by:
      setDebug in interface org.geysermc.geyser.GeyserLogger
    • isDebug

      public boolean isDebug()
      Specified by:
      isDebug in interface org.geysermc.geyser.GeyserLogger