Class PARTsLogger

java.lang.Object
org.parts3492.partslib.PARTsLogger

public class PARTsLogger extends Object
  • Constructor Details

    • PARTsLogger

      public PARTsLogger()
      Create a new PARTsLogger.

      By default, logging is disabled.

    • PARTsLogger

      public PARTsLogger(boolean allowLogging)
      Create a new PARTsLogger.

      Parameters:
      allowLogging - Enables logging.
    • PARTsLogger

      public PARTsLogger(String name)
      Create a new PARTsLogger with the following name.

      By default, logging is disabled.

    • PARTsLogger

      public PARTsLogger(String name, boolean allowLogging)
      Create a new PARTsLogger with the following name.

      Parameters:
      allowLogging - Enables logging.
    • PARTsLogger

      public PARTsLogger(Object o)
      Create a new PARTsLogger with the object's class name.

      E.g. PARTsLogger.

      By default, logging is disabled.

    • PARTsLogger

      public PARTsLogger(Object o, boolean allowLogging)
      Create a new PARTsLogger with the object's class name.

      E.g. PARTsLogger.

      Parameters:
      allowLogging - Enables logging.
  • Method Details

    • enableLogging

      public void enableLogging()
      Enables the logging if it has been disabled.
    • disableLogging

      public void disableLogging()
      Disables the logging.
    • logBoolean

      public boolean logBoolean(String key, boolean b)
    • logDouble

      public boolean logDouble(String key, double d)
    • logString

      public boolean logString(String key, String s)
    • logCommandScheduler

      public void logCommandScheduler()
    • logPathPlanner

      public void logPathPlanner()