Package fr.sandro642.github.misc
Class Logs
java.lang.Object
fr.sandro642.github.misc.Logs
Logs is a utility class for managing logging in the ConnectLib library.
It provides methods to create logs with timestamps and log types, and to write them to a file.
-
Constructor Details
-
Logs
public Logs()
-
-
Method Details
-
setPathFile
public void setPathFile()Static block to initialize the Logs instance. This block is executed when the class is loaded, ensuring that the instance is created only once. -
MakeALog
* Static block to initialize the Logs instance. This block is executed when the class is loaded, ensuring that the instance is created only once.- Type Parameters:
P
-- Parameters:
logType
- The type of resource for which the logs are being created.logText
- The text to be logged.
-
getLogs
Get the instance of Logs.- Returns:
- instance of Logs
-