Updated startup files.

This commit is contained in:
MobiusDev
2018-04-30 21:42:33 +00:00
parent d92c73b8cb
commit f699e2653c
33 changed files with 446 additions and 290 deletions

View File

@@ -149,7 +149,7 @@ public class GameServer
// Local Constants
private static final String LOG_FOLDER = "log"; // Name of folder for log file
private static final String LOG_NAME = "./config/others/log.cfg"; // Name of log file
private static final String LOG_NAME = "./log.cfg"; // Name of log file
private static SelectorThread<L2GameClient> _selectorThread;
private static LoginServerThread _loginThread;

View File

@@ -0,0 +1,41 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
import java.util.logging.LogManager;
/**
* Specialized {@link LogManager} class.<br>
* Prevents log devices to close before shutdown sequence so the shutdown sequence can make logging.
*/
public class L2LogManager extends LogManager
{
public L2LogManager()
{
}
@Override
public void reset()
{
// do nothing
}
public void doReset()
{
super.reset();
}
}

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.filter;
import java.util.logging.Filter;
import java.util.logging.LogRecord;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.filter;
import java.util.logging.Filter;
import java.util.logging.LogRecord;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.filter;
import java.util.logging.Filter;
import java.util.logging.LogRecord;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.filter;
import java.util.logging.Filter;
import java.util.logging.LogRecord;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.formatter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.formatter;
import java.util.logging.LogRecord;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.formatter;
import java.util.logging.LogRecord;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.formatter;
import java.util.logging.LogRecord;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.formatter;
import java.text.SimpleDateFormat;
import java.util.Date;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.formatter;
import java.util.logging.LogRecord;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.handler;
import java.io.IOException;
import java.util.logging.FileHandler;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.handler;
import java.io.IOException;
import java.util.logging.FileHandler;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.handler;
import java.io.IOException;
import java.util.logging.FileHandler;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jmobius.log;
package com.l2jmobius.log.handler;
import java.io.IOException;
import java.util.logging.FileHandler;

View File

@@ -63,7 +63,7 @@ public class LoginServer
Server.serverMode = Server.MODE_LOGINSERVER;
// Local Constants
final String LOG_FOLDER = "log"; // Name of folder for log file
final String LOG_NAME = "./config/others/log.cfg"; // Name of log file
final String LOG_NAME = "./log.cfg"; // Name of log file
/*** Main ***/
// Create log folder