Module com.github.eventmanager
Class ConfigEvent
java.lang.Object
com.github.eventmanager.filehandlers.config.ConfigEvent
The ConfigEvent class holds the configuration settings related to events for the EventManager application.
It includes settings for printing logs to the console, saving logs to a file, debugging mode, informational mode,
time format for logging events, and event format for logging events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets whether debugging mode is enabled.Gets the event format for logging events.boolean
Gets whether informational mode is enabled.boolean
Gets whether logs should be printed and saved to a file.boolean
Gets whether logs should be printed to the console.Gets the time format for logging events.void
setDebuggingMode
(boolean debuggingMode) Sets whether debugging mode is enabled.void
setEventFormat
(String eventFormat) Sets the event format for logging events.void
setInformationalMode
(boolean informationalMode) Sets whether informational mode is enabled.void
setPrintAndSaveToFile
(boolean printAndSaveToFile) Sets whether logs should be printed and saved to a file.void
setPrintToConsole
(boolean printToConsole) Sets whether logs should be printed to the console.void
setTimeFormat
(String timeFormat) Sets the time format for logging events.
-
Constructor Details
-
ConfigEvent
public ConfigEvent()
-
-
Method Details
-
getPrintToConsole
public boolean getPrintToConsole()Gets whether logs should be printed to the console.- Returns:
- true if logs should be printed to the console, false otherwise.
-
setPrintToConsole
public void setPrintToConsole(boolean printToConsole) Sets whether logs should be printed to the console.- Parameters:
printToConsole
- true to print logs to the console, false otherwise.
-
getPrintAndSaveToFile
public boolean getPrintAndSaveToFile()Gets whether logs should be printed and saved to a file.- Returns:
- true if logs should be printed and saved to a file, false otherwise.
-
setPrintAndSaveToFile
public void setPrintAndSaveToFile(boolean printAndSaveToFile) Sets whether logs should be printed and saved to a file.- Parameters:
printAndSaveToFile
- true to print and save logs to a file, false otherwise.
-
getDebuggingMode
public boolean getDebuggingMode()Gets whether debugging mode is enabled.- Returns:
- true if debugging mode is enabled, false otherwise.
-
setDebuggingMode
public void setDebuggingMode(boolean debuggingMode) Sets whether debugging mode is enabled.- Parameters:
debuggingMode
- true to enable debugging mode, false otherwise.
-
getInformationalMode
public boolean getInformationalMode()Gets whether informational mode is enabled.- Returns:
- true if informational mode is enabled, false otherwise.
-
setInformationalMode
public void setInformationalMode(boolean informationalMode) Sets whether informational mode is enabled.- Parameters:
informationalMode
- true to enable informational mode, false otherwise.
-
getTimeFormat
Gets the time format for logging events.- Returns:
- the time format for logging events.
-
setTimeFormat
Sets the time format for logging events.- Parameters:
timeFormat
- the time format for logging events.
-
getEventFormat
Gets the event format for logging events.- Returns:
- the event format for logging events.
-
setEventFormat
Sets the event format for logging events.- Parameters:
eventFormat
- the event format for logging events.
-