Class LogManager

java.lang.Object
me.yleoft.zAPI.managers.LogManager

public class LogManager extends Object
FileManager class to manage log files. It provides methods to create and manage log files.
  • Constructor Details

    • LogManager

      public LogManager()
  • Method Details

    • getFiles

      public static List<LogUtils> getFiles()
      Returns a list of all log utils loaded.
    • createFile

      public static LogUtils createFile(@NotNull @NotNull String name)
      Creates a new file in the plugin's data folder.
      Parameters:
      name - The path of the file to create.
      Returns:
      The FileUtils of the created file or an existing file.
    • getLogUtil

      public static LogUtils getLogUtil(@NotNull @NotNull String name)
      Retrieves a log utils by its name.
      Parameters:
      name - The name of the file to retrieve.
      Returns:
      The YamlConfiguration of the file.
      Throws:
      IllegalArgumentException - if the file is not found.
    • getFile

      public static File getFile(@NotNull @NotNull String name)
      Retrieves a file by its name.
      Parameters:
      name - The name of the file to retrieve.
      Returns:
      The YamlConfiguration of the file.
      Throws:
      IllegalArgumentException - if the file is not found.
    • getLogFolder

      public static File getLogFolder()