mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-02 16:59:56 +01:00
Additional comments to logger
This commit is contained in:
parent
6af3964699
commit
665dccbcc5
@ -120,7 +120,7 @@ public class MultiverseCore extends JavaPlugin {
|
||||
// Create our DataFolder
|
||||
getDataFolder().mkdirs();
|
||||
// Setup our Debug Log
|
||||
debugLog = new DebugLog("Multiverse", getDataFolder() + File.separator + "debug.log");
|
||||
debugLog = new DebugLog("Multiverse-Core", getDataFolder() + File.separator + "debug.log");
|
||||
|
||||
// Setup & Load our Configuration files.
|
||||
loadConfigs();
|
||||
|
@ -15,7 +15,11 @@ public class DebugLog {
|
||||
|
||||
private FileHandler fh;
|
||||
private Logger log;
|
||||
|
||||
/**
|
||||
* Creates a new debug logger.
|
||||
* @param logger The name of the logger.
|
||||
* @param file The file to log to.
|
||||
*/
|
||||
public DebugLog(String logger, String file) {
|
||||
log = Logger.getLogger(logger);
|
||||
|
||||
@ -34,7 +38,11 @@ public class DebugLog {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Log a message at a certain level
|
||||
* @param level
|
||||
* @param msg
|
||||
*/
|
||||
public void log(Level level, String msg) {
|
||||
log.log(level, msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user