Class LogWriter

java.lang.Object
com.prineside.tdi2.utils.logging.LogWriter
All Implemented Interfaces:
Runnable

public final class LogWriter extends Object implements Runnable
  • Field Details

    • LOG_ROTATE_AFTER_CHARACTERS

      public static long LOG_ROTATE_AFTER_CHARACTERS
      Can be set by the platform if it needs automatic log rotation. Values below 0 will be treated as "do not rotate".
    • LOG_FILE_ENTRY_REGEX

      public static final Pattern LOG_FILE_ENTRY_REGEX
      Regex pattern for a log line which starts with a date and log level Group 1: date like "2024-06-12 20:34:12.825" Group 2: short log level like 'I' or 'D' Group 3: message tag like "AssetManager" The message itself starts where the whole match ends. If pattern does not match, the line should be treated as a continuation of the previous entry (which contains a newline)
    • LOG_DATE_FORMAT

      public static final SimpleDateFormat LOG_DATE_FORMAT
    • LOG_FILE_WRITER_STATUS_NOT_STARTED

      public static final int LOG_FILE_WRITER_STATUS_NOT_STARTED
      See Also:
    • LOG_FILE_WRITER_STATUS_STARTING

      public static final int LOG_FILE_WRITER_STATUS_STARTING
      See Also:
    • LOG_FILE_WRITER_STATUS_STOPPED

      public static final int LOG_FILE_WRITER_STATUS_STOPPED
      See Also:
    • LOG_FILE_WRITER_STATUS_SLEEP_NO_FILE

      public static final int LOG_FILE_WRITER_STATUS_SLEEP_NO_FILE
      See Also:
    • LOG_FILE_WRITER_STATUS_SLEEP_NO_ENTRIES

      public static final int LOG_FILE_WRITER_STATUS_SLEEP_NO_ENTRIES
      See Also:
    • LOG_FILE_WRITER_STATUS_WRITING

      public static final int LOG_FILE_WRITER_STATUS_WRITING
      See Also:
  • Constructor Details

    • LogWriter

      public LogWriter()
  • Method Details

    • getWriterStatus

      public static int getWriterStatus()
    • run

      public void run()
      Specified by:
      run in interface Runnable