Package com.prineside.tdi2.utils.logging
Class LogWriter
java.lang.Object
com.prineside.tdi2.utils.logging.LogWriter
- All Implemented Interfaces:
Runnable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SimpleDateFormat
static final Pattern
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.static final int
static final int
static final int
static final int
static final int
static final int
static long
Can be set by the platform if it needs automatic log rotation. -
Constructor Summary
-
Method Summary
-
Field Details
-
LOG_ROTATE_AFTER_CHARACTERS
public static long LOG_ROTATE_AFTER_CHARACTERSCan 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
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
-
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