Some logger constants to uppercase.
This commit is contained in:
		| @@ -99,7 +99,7 @@ import com.l2jmobius.gameserver.util.GMAudit; | ||||
| public final class L2ItemInstance extends L2Object | ||||
| { | ||||
| 	private static final Logger LOGGER = Logger.getLogger(L2ItemInstance.class.getName()); | ||||
| 	private static final Logger _logItems = Logger.getLogger("item"); | ||||
| 	private static final Logger LOG_ITEMS = Logger.getLogger("item"); | ||||
| 	 | ||||
| 	/** ID of the owner */ | ||||
| 	private int _ownerId; | ||||
| @@ -333,7 +333,7 @@ public final class L2ItemInstance extends L2Object | ||||
| 			{ | ||||
| 				if (getEnchantLevel() > 0) | ||||
| 				{ | ||||
| 					_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null | ||||
| 					LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null | ||||
| 						+ ", item " + getObjectId() // | ||||
| 						+ ":+" + getEnchantLevel() // | ||||
| 						+ " " + getItem().getName() // | ||||
| @@ -343,7 +343,7 @@ public final class L2ItemInstance extends L2Object | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					_logItems.info("SETOWNER:" + String.valueOf(process) // in case of null | ||||
| 					LOG_ITEMS.info("SETOWNER:" + String.valueOf(process) // in case of null | ||||
| 						+ ", item " + getObjectId() // | ||||
| 						+ ":" + getItem().getName() // | ||||
| 						+ "(" + _count + "), " // | ||||
| @@ -507,7 +507,7 @@ public final class L2ItemInstance extends L2Object | ||||
| 			{ | ||||
| 				if (getEnchantLevel() > 0) | ||||
| 				{ | ||||
| 					_logItems.info("CHANGE:" + String.valueOf(process) // in case of null | ||||
| 					LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null | ||||
| 						+ ", item " + getObjectId() // | ||||
| 						+ ":+" + getEnchantLevel() // | ||||
| 						+ " " + getItem().getName() // | ||||
| @@ -518,7 +518,7 @@ public final class L2ItemInstance extends L2Object | ||||
| 				} | ||||
| 				else | ||||
| 				{ | ||||
| 					_logItems.info("CHANGE:" + String.valueOf(process) // in case of null | ||||
| 					LOG_ITEMS.info("CHANGE:" + String.valueOf(process) // in case of null | ||||
| 						+ ", item " + getObjectId() // | ||||
| 						+ ":" + getItem().getName() // | ||||
| 						+ "(" + _count + "), PrevCount(" // | ||||
|   | ||||
| @@ -51,7 +51,7 @@ import com.l2jmobius.gameserver.util.Util; | ||||
| @SuppressWarnings("unused") | ||||
| public final class CharacterCreate implements IClientIncomingPacket | ||||
| { | ||||
| 	protected static final Logger _logAccounting = Logger.getLogger("accounting"); | ||||
| 	protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting"); | ||||
| 	 | ||||
| 	// cSdddddddddddd | ||||
| 	private String _name; | ||||
| @@ -252,7 +252,7 @@ public final class CharacterCreate implements IClientIncomingPacket | ||||
| 		 | ||||
| 		initNewChar(client, newChar); | ||||
| 		 | ||||
| 		_logAccounting.info("Created new character, " + newChar + ", " + client); | ||||
| 		LOG_ACCOUNTING.info("Created new character, " + newChar + ", " + client); | ||||
| 	} | ||||
| 	 | ||||
| 	private static boolean isValidName(String text) | ||||
|   | ||||
| @@ -46,7 +46,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ServerClose; | ||||
|  */ | ||||
| public class CharacterSelect implements IClientIncomingPacket | ||||
| { | ||||
| 	protected static final Logger _logAccounting = Logger.getLogger("accounting"); | ||||
| 	protected static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting"); | ||||
| 	 | ||||
| 	// cd | ||||
| 	private int _charSlot; | ||||
| @@ -175,7 +175,7 @@ public class CharacterSelect implements IClientIncomingPacket | ||||
| 				client.getActiveCharLock().unlock(); | ||||
| 			} | ||||
| 			 | ||||
| 			_logAccounting.info("Logged in, " + client); | ||||
| 			LOG_ACCOUNTING.info("Logged in, " + client); | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.network.serverpackets.KeyPacket; | ||||
|  */ | ||||
| public final class ProtocolVersion implements IClientIncomingPacket | ||||
| { | ||||
| 	private static final Logger _logAccounting = Logger.getLogger("accounting"); | ||||
| 	private static final Logger LOG_ACCOUNTING = Logger.getLogger("accounting"); | ||||
| 	 | ||||
| 	private int _version; | ||||
| 	 | ||||
| @@ -51,7 +51,7 @@ public final class ProtocolVersion implements IClientIncomingPacket | ||||
| 		} | ||||
| 		else if (!Config.PROTOCOL_LIST.contains(_version)) | ||||
| 		{ | ||||
| 			_logAccounting.warning("Wrong protocol version " + _version + ", " + client); | ||||
| 			LOG_ACCOUNTING.warning("Wrong protocol version " + _version + ", " + client); | ||||
| 			client.setProtocolOk(false); | ||||
| 			client.close(new KeyPacket(client.enableCrypt(), 0)); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDev
					MobiusDev