Class USBLogger

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class USBLogger
    extends java.lang.Object
    implements java.lang.AutoCloseable
    The USBLogger is a class that is used to save a copy of all logs written to RobotLogger to their own file. This saved file is located in "robot.log" in the current session directory (see FileManagement). To link a USBLogger object to RobotLogger, use RobotLogger.getInstance().enableUSBLogging()
    • Constructor Summary

      Constructors 
      Constructor Description
      USBLogger()
      Create a USBLogger
      USBLogger​(java.lang.String unused)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void writeln​(java.lang.String line)
      Write a line to the USB log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • USBLogger

        @Deprecated(since="July 2020",
                    forRemoval=true)
        public USBLogger​(java.lang.String unused)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Deprecated
        Parameters:
        unused - Unused value
      • USBLogger

        public USBLogger()
        Create a USBLogger
    • Method Detail

      • writeln

        protected void writeln​(java.lang.String line)
        Write a line to the USB log
        Parameters:
        line - Line to write
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException