class frc_apriltags.Utilities.Logger

Bases: object

Use this class to log an debug info you generate.

static logDebug(debug: str, logStatus: bool = True)

Logs a debug statement.

Parameters:
  • debug – The debug message to log

  • logStatus – Is logging enabled

static logError(error: str, logStatus: bool = True)

Logs an error.

Parameters:
  • error – The error message to log

  • logStatus – Is logging enabled

static logInfo(info: str, logStatus: bool = True)

Logs information.

Parameters:
  • info – The info message to log

  • logStatus – Is logging enabled

static logWarning(warning: str, logStatus: bool = True)

Logs a warning.

Parameters:
  • warning – The warning message to log

  • logStatus – Is logging enabled

static setLogPath(dirPath: str = '/tmp/')

Enables the logger.

Parameters:

dirPath – Should be aquired by running Path(__file__).absolute().parent.__str__() in the script calling this method