java.lang.Object
com.github.rhys_h_walker.core_objects.Log

public class Log extends Object
Representation of a Log in memory, not used for creating and outputing Will be used for viewing logs that exist in memory BIG NOTE: Currently not used by the program, this is retained for future use
  • Constructor Details

    • Log

      public Log(LoggingType logType, String message, String id, String timestamp)
      Create a new log object on the fly and outputs correctly to the console
      Parameters:
      logType - The type of log that is being used LoggingType enum
      message - The message to be associated with the log
      id - The lineno that the log appears on in the log file (Pre appended with leading 0s if necessary)
      timestamp - The timestamp given in the form yyyy-MM-dd-HH:mm:ss
  • Method Details

    • getId

      public String getId()
      Get the ID String for this log
      Returns:
      The ID of the log
    • getTimestamp

      public String getTimestamp()
      Get the timestamp associated with this log
      Returns:
      The timestamp String to use, format of (YYYY-MM-DD-HH:MM:SS)
    • getLoggingType

      public LoggingType getLoggingType()
      Get the logging type this log is a member of
      Returns:
      The logging type
    • getLogMessage

      public String getLogMessage()
      Get the logging message that is associated with this log
      Returns:
      The logging message