Class AX25Logger

All Implemented Interfaces:
Comparable<ReschedulableTimerTask>, Runnable, ShutdownHandler

public class AX25Logger extends FileLogger<AX25Frame>
This class batches up logging AX.25 messages. By default, it logs in CSV format.
Author:
Andrew Pavlin, KA2DDO
  • Constructor Details

    • AX25Logger

      public AX25Logger(String prefix)
      Create an AX.25 frame logger instance.
      Parameters:
      prefix - the String prefix to use for the log file name, prior to the date value
  • Method Details

    • getLogFileFormat

      public PacketExportMode getLogFileFormat()
      Get the current logging file format for the packets.
      Returns:
      PacketExportMode to be used
    • setLogFileFormat

      public void setLogFileFormat(PacketExportMode pem)
      Change the logging file format for the packets.
      Parameters:
      pem - PacketExportMode to be used
    • dumpRecordQueueToFile

      public void dumpRecordQueueToFile(File logFileFile, ArrayList<AX25Frame> recordQueue) throws IOException
      Opens the specified sequential file for append, then write each of the AX.25 records in the recordQueue in order to the file, then close the file.
      Specified by:
      dumpRecordQueueToFile in class FileLogger<AX25Frame>
      Parameters:
      logFileFile - File identifying the log file to open and write
      recordQueue - the ArrayList of ordered records to write
      Throws:
      IOException - if record saving fails for any reason