Class Logs

java.lang.Object
fr.sandro642.github.misc.Logs

public class Logs extends Object
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

      public <P> void MakeALog(String logText, P logType)
      * 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

      public static Logs getLogs()
      Get the instance of Logs.
      Returns:
      instance of Logs