/*
 * Copyright (c) 2016 MCPhoton <http://mcphoton.org> and contributors.
 *
 * This file is part of the Photon Server Implementation <https://github.com/mcphoton/Photon-Server>.
 *
 * The Photon Server Implementation is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * The Photon Server Implementation 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 Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.slf4j.impl;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import org.slf4j.ILoggerFactory;
import org.slf4j.Logger;

public class PhotonLoggerFactory implements ILoggerFactory {

	private final ConcurrentMap<String, Logger> loggerMap = new ConcurrentHashMap<>();

	@Override
	public Logger getLogger(String name) {
		return loggerMap.computeIfAbsent(name, (k) -> new PhotonLogger(name));
	}

}

@@ -909,16 +909,110 @@
 .impl;%0A%0A
+import com.electronwill.utils.StringUtils;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A
 import j
@@ -1046,24 +1046,24 @@
 entHashMap;%0A
-
 import java.
@@ -1298,17 +1298,18 @@
 ap%3C%3E();%0A
+%09
 %0A
-
 %09@Overri
@@ -1351,16 +1351,273 @@
 name) %7B%0A
+%09%09if(name.startsWith(%22org.mcphoton%22))%7B%0A%09%09%09List%3CString%3E parts = new ArrayList%3C%3E();%0A%09%09%09StringUtils.split(name, '.', parts);%0A%09%09%09name = parts.get(parts.size()-1);//uses the last part%0A%09%09%7D%0A%09%09final String loggerName = name;//final String for the lambda expression%0A
 %09%09return
@@ -1673,17 +1673,23 @@
 nLogger(
-n
+loggerN
 ame));%0A%09

Remove class path from photon's loggers