Package com.petarmc.lib.log
Class LogConfig
java.lang.Object
com.petarmc.lib.log.LogConfig
Configuration settings for the logging system.
Allows controlling log levels, output format, and file logging options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic LogLevelThe global log level.static StringA prefix to add to every log message, e.g., "[MyMod]".static booleanIf true, the current thread name will be included in log messages.static booleanIf true, timestamps will be included in log messages.static StringThe path of the log file whenlogToFileis true.static booleanIf true, log messages will also be written to a file. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
globalLevel
The global log level. Messages below this level will be ignored. Default isLogLevel.INFO. -
logToFile
public static boolean logToFileIf true, log messages will also be written to a file. Default is false. -
logFilePath
-
globalPrefix
A prefix to add to every log message, e.g., "[MyMod]". Default is an empty string. -
includeTimestamp
public static boolean includeTimestampIf true, timestamps will be included in log messages. Default is true. -
includeThread
public static boolean includeThreadIf true, the current thread name will be included in log messages. Default is false.
-
-
Constructor Details
-
LogConfig
public LogConfig()
-