Package me.yleoft.zAPI.managers
Class LogManager
java.lang.Object
me.yleoft.zAPI.managers.LogManager
FileManager class to manage log files.
It provides methods to create and manage log files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogUtils
createFile
(@NotNull String name) Creates a new file in the plugin's data folder.static File
Retrieves a file by its name.getFiles()
Returns a list of all log utils loaded.static File
static LogUtils
getLogUtil
(@NotNull String name) Retrieves a log utils by its name.
-
Constructor Details
-
LogManager
public LogManager()
-
-
Method Details
-
getFiles
Returns a list of all log utils loaded. -
createFile
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
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
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
-