Class Log
java.lang.Object
com.github.rhys_h_walker.core_objects.Log
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 Summary
ConstructorsConstructorDescriptionLog
(LoggingType logType, String message, String id, String timestamp) Create a new log object on the fly and outputs correctly to the console -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Get the ID String for this logGet the logging type this log is a member ofGet the logging message that is associated with this logGet the timestamp associated with this log
-
Constructor Details
-
Log
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 enummessage
- The message to be associated with the logid
- 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
Get the ID String for this log- Returns:
- The ID of the log
-
getTimestamp
Get the timestamp associated with this log- Returns:
- The timestamp String to use, format of (YYYY-MM-DD-HH:MM:SS)
-
getLoggingType
Get the logging type this log is a member of- Returns:
- The logging type
-
getLogMessage
Get the logging message that is associated with this log- Returns:
- The logging message
-