Removed static log constants.

This commit is contained in:
MobiusDev
2018-04-30 21:51:57 +00:00
parent f699e2653c
commit 8a21c2c232
23 changed files with 39 additions and 111 deletions

View File

@@ -151,10 +151,6 @@ public class GameServer
{
private static final Logger LOGGER = Logger.getLogger(GameServer.class.getName());
// Local Constants
private static final String LOG_FOLDER = "log"; // Name of folder for log file
private static final String LOG_NAME = "./log.cfg"; // Name of log file
private final DeadLockDetector _deadDetectThread;
private static GameServer INSTANCE;
public static final Calendar dateTimeServerStarted = Calendar.getInstance();
@@ -459,11 +455,11 @@ public class GameServer
/*** Main ***/
// Create log folder
final File logFolder = new File(Config.DATAPACK_ROOT, LOG_FOLDER);
final File logFolder = new File(Config.DATAPACK_ROOT, "log");
logFolder.mkdir();
// Create input stream for log file -- or store file data into memory
try (InputStream is = new FileInputStream(new File(LOG_NAME)))
try (InputStream is = new FileInputStream(new File("./log.cfg")))
{
LogManager.getLogManager().readConfiguration(is);
}