Package com.iizigo

Class Console

java.lang.Object
com.iizigo.Console
All Implemented Interfaces:
ILoggerRedirector

public class Console extends Object implements ILoggerRedirector
Console class with colors.
Author:
Christopher Mindus
  • Field Details

  • Method Details

    • getPrintAdapter

      public static IPrintAdapter getPrintAdapter()
      Gets the printer to use for simple console output.
      Returns:
      The instance.
    • onEventLogged

      public void onEventLogged(LogEntry entry)
      Called when an event is logged.
      Specified by:
      onEventLogged in interface ILoggerRedirector
      Parameters:
      entry - The log entry.
    • eprintln

      public static void eprintln(String msg)
      Prints a stderr message.
      Parameters:
      msg - The message to print.
    • println

      public static void println(String msg)
      Prints a stdout message.
      Parameters:
      msg - The message to print.
    • println

      public static void println(int type, String msg)
      Prints to any of the stream types.
      Parameters:
      type - The type of message:
         TYPE_stderr      = 0
         TYPE_stdout      = 1
         TYPE_log_SEVERE  = 2
         TYPE_log_WARNING = 3
         TYPE_log_INFO    = 4
         TYPE_log_CONFIG  = 5
         TYPE_log_FINE    = 6
         TYPE_log_FINER   = 7
         TYPE_log_FINEST  = 8
       
      msg - The message to print.