Project update.
This commit is contained in:
32
trunk/java/com/l2jmobius/log/filter/AuditFilter.java
Normal file
32
trunk/java/com/l2jmobius/log/filter/AuditFilter.java
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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.filter;
|
||||
|
||||
import java.util.logging.Filter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
/**
|
||||
* @author zabbix
|
||||
*/
|
||||
public class AuditFilter implements Filter
|
||||
{
|
||||
@Override
|
||||
public boolean isLoggable(LogRecord record)
|
||||
{
|
||||
return record.getLoggerName().equalsIgnoreCase("audit");
|
||||
}
|
||||
}
|
30
trunk/java/com/l2jmobius/log/filter/ChatFilter.java
Normal file
30
trunk/java/com/l2jmobius/log/filter/ChatFilter.java
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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.filter;
|
||||
|
||||
import java.util.logging.Filter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
public class ChatFilter implements Filter
|
||||
{
|
||||
@Override
|
||||
public boolean isLoggable(LogRecord record)
|
||||
{
|
||||
return "chat".equals(record.getLoggerName());
|
||||
}
|
||||
|
||||
}
|
29
trunk/java/com/l2jmobius/log/filter/EnchantItemFilter.java
Normal file
29
trunk/java/com/l2jmobius/log/filter/EnchantItemFilter.java
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.filter;
|
||||
|
||||
import java.util.logging.Filter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
public class EnchantItemFilter implements Filter
|
||||
{
|
||||
@Override
|
||||
public boolean isLoggable(LogRecord record)
|
||||
{
|
||||
return record.getLoggerName().equalsIgnoreCase("item");
|
||||
}
|
||||
}
|
29
trunk/java/com/l2jmobius/log/filter/EnchantSkillFilter.java
Normal file
29
trunk/java/com/l2jmobius/log/filter/EnchantSkillFilter.java
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.filter;
|
||||
|
||||
import java.util.logging.Filter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
public class EnchantSkillFilter implements Filter
|
||||
{
|
||||
@Override
|
||||
public boolean isLoggable(LogRecord record)
|
||||
{
|
||||
return record.getLoggerName().equalsIgnoreCase("skill");
|
||||
}
|
||||
}
|
30
trunk/java/com/l2jmobius/log/filter/ErrorFilter.java
Normal file
30
trunk/java/com/l2jmobius/log/filter/ErrorFilter.java
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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.filter;
|
||||
|
||||
import java.util.logging.Filter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
public class ErrorFilter implements Filter
|
||||
{
|
||||
@Override
|
||||
public boolean isLoggable(LogRecord record)
|
||||
{
|
||||
return record.getThrown() != null;
|
||||
}
|
||||
|
||||
}
|
29
trunk/java/com/l2jmobius/log/filter/GMAuditFilter.java
Normal file
29
trunk/java/com/l2jmobius/log/filter/GMAuditFilter.java
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.filter;
|
||||
|
||||
import java.util.logging.Filter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
public class GMAuditFilter implements Filter
|
||||
{
|
||||
@Override
|
||||
public boolean isLoggable(LogRecord record)
|
||||
{
|
||||
return record.getLoggerName().equalsIgnoreCase("gmaudit");
|
||||
}
|
||||
}
|
67
trunk/java/com/l2jmobius/log/filter/ItemFilter.java
Normal file
67
trunk/java/com/l2jmobius/log/filter/ItemFilter.java
Normal file
@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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.filter;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.logging.Filter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.items.type.EtcItemType;
|
||||
import com.l2jmobius.gameserver.model.items.type.ItemType;
|
||||
|
||||
/**
|
||||
* @author Advi
|
||||
*/
|
||||
public class ItemFilter implements Filter
|
||||
{
|
||||
// private String _excludeProcess;
|
||||
// private String _excludeItemType;
|
||||
|
||||
// This is an example how to exclude consuming of shots and arrows from logging
|
||||
private static final String EXCLUDE_PROCESS = "Consume";
|
||||
private static final Set<ItemType> EXCLUDED_ITEM_TYPES = new HashSet<>();
|
||||
static
|
||||
{
|
||||
EXCLUDED_ITEM_TYPES.add(EtcItemType.ARROW);
|
||||
EXCLUDED_ITEM_TYPES.add(EtcItemType.SHOT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLoggable(LogRecord record)
|
||||
{
|
||||
if (!"item".equals(record.getLoggerName()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final String[] messageList = record.getMessage().split(":");
|
||||
if ((messageList.length < 2) || !EXCLUDE_PROCESS.contains(messageList[1]))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
final L2ItemInstance item = ((L2ItemInstance) record.getParameters()[0]);
|
||||
if (!EXCLUDED_ITEM_TYPES.contains(item.getItemType()))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
29
trunk/java/com/l2jmobius/log/filter/MDamageFilter.java
Normal file
29
trunk/java/com/l2jmobius/log/filter/MDamageFilter.java
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.filter;
|
||||
|
||||
import java.util.logging.Filter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
public class MDamageFilter implements Filter
|
||||
{
|
||||
@Override
|
||||
public boolean isLoggable(LogRecord record)
|
||||
{
|
||||
return record.getLoggerName().equalsIgnoreCase("mdam");
|
||||
}
|
||||
}
|
29
trunk/java/com/l2jmobius/log/filter/PDamageFilter.java
Normal file
29
trunk/java/com/l2jmobius/log/filter/PDamageFilter.java
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.filter;
|
||||
|
||||
import java.util.logging.Filter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
public class PDamageFilter implements Filter
|
||||
{
|
||||
@Override
|
||||
public boolean isLoggable(LogRecord record)
|
||||
{
|
||||
return record.getLoggerName().equalsIgnoreCase("pdam");
|
||||
}
|
||||
}
|
114
trunk/java/com/l2jmobius/log/formatter/AccountingFormatter.java
Normal file
114
trunk/java/com/l2jmobius/log/formatter/AccountingFormatter.java
Normal file
@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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.formatter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.L2GameClient;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
public class AccountingFormatter extends Formatter
|
||||
{
|
||||
private final SimpleDateFormat dateFmt = new SimpleDateFormat("dd MMM H:mm:ss");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
final Object[] params = record.getParameters();
|
||||
final StringBuilder output = StringUtil.startAppend(30 + record.getMessage().length() + (params == null ? 0 : params.length * 10), "[", dateFmt.format(new Date(record.getMillis())), "] ", record.getMessage());
|
||||
|
||||
if (params != null)
|
||||
{
|
||||
for (Object p : params)
|
||||
{
|
||||
if (p == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
StringUtil.append(output, ", ");
|
||||
|
||||
if (p instanceof L2GameClient)
|
||||
{
|
||||
final L2GameClient client = (L2GameClient) p;
|
||||
String address = null;
|
||||
try
|
||||
{
|
||||
if (!client.isDetached())
|
||||
{
|
||||
address = client.getConnection().getInetAddress().getHostAddress();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
}
|
||||
|
||||
switch (client.getState())
|
||||
{
|
||||
case IN_GAME:
|
||||
{
|
||||
if (client.getActiveChar() != null)
|
||||
{
|
||||
StringUtil.append(output, client.getActiveChar().getName());
|
||||
StringUtil.append(output, "(", String.valueOf(client.getActiveChar().getObjectId()), ") ");
|
||||
}
|
||||
break;
|
||||
}
|
||||
case AUTHED:
|
||||
{
|
||||
if (client.getAccountName() != null)
|
||||
{
|
||||
StringUtil.append(output, client.getAccountName(), " ");
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CONNECTED:
|
||||
{
|
||||
if (address != null)
|
||||
{
|
||||
StringUtil.append(output, address);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
throw new IllegalStateException("Missing state on switch");
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (p instanceof L2PcInstance)
|
||||
{
|
||||
final L2PcInstance player = (L2PcInstance) p;
|
||||
StringUtil.append(output, player.getName());
|
||||
StringUtil.append(output, "(", String.valueOf(player.getObjectId()), ")");
|
||||
}
|
||||
else
|
||||
{
|
||||
StringUtil.append(output, p.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output.append(Config.EOL);
|
||||
return output.toString();
|
||||
}
|
||||
}
|
55
trunk/java/com/l2jmobius/log/formatter/AuditFormatter.java
Normal file
55
trunk/java/com/l2jmobius/log/formatter/AuditFormatter.java
Normal file
@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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.formatter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* @author zabbix
|
||||
*/
|
||||
public class AuditFormatter extends Formatter
|
||||
{
|
||||
private final SimpleDateFormat dateFmt = new SimpleDateFormat("dd MMM H:mm:ss");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
final Object[] params = record.getParameters();
|
||||
final StringBuilder output = StringUtil.startAppend(30 + record.getMessage().length() + (params == null ? 0 : params.length * 10), "[", dateFmt.format(new Date(record.getMillis())), "] ", record.getMessage());
|
||||
|
||||
if (params != null)
|
||||
{
|
||||
for (Object p : params)
|
||||
{
|
||||
if (p == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
StringUtil.append(output, ", ", p.toString());
|
||||
}
|
||||
}
|
||||
|
||||
output.append(Config.EOL);
|
||||
return output.toString();
|
||||
}
|
||||
}
|
49
trunk/java/com/l2jmobius/log/formatter/ChatLogFormatter.java
Normal file
49
trunk/java/com/l2jmobius/log/formatter/ChatLogFormatter.java
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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.formatter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
public class ChatLogFormatter extends Formatter
|
||||
{
|
||||
private final SimpleDateFormat dateFmt = new SimpleDateFormat("dd MMM H:mm:ss");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
final Object[] params = record.getParameters();
|
||||
final StringBuilder output = StringUtil.startAppend(30 + record.getMessage().length() + (params != null ? 10 * params.length : 0), "[", dateFmt.format(new Date(record.getMillis())), "] ");
|
||||
|
||||
if (params != null)
|
||||
{
|
||||
for (Object p : params)
|
||||
{
|
||||
StringUtil.append(output, String.valueOf(p), " ");
|
||||
}
|
||||
}
|
||||
|
||||
StringUtil.append(output, record.getMessage(), Config.EOL);
|
||||
|
||||
return output.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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.formatter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
import com.l2jmobius.util.Util;
|
||||
|
||||
public class ConsoleLogFormatter extends Formatter
|
||||
{
|
||||
private final SimpleDateFormat dateFmt = new SimpleDateFormat("dd/MM HH:mm:ss");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
final StringBuilder output = new StringBuilder(500);
|
||||
StringUtil.append(output, "[", dateFmt.format(new Date(record.getMillis())), "] " + record.getMessage(), Config.EOL);
|
||||
|
||||
if (record.getThrown() != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
StringUtil.append(output, Util.getStackTrace(record.getThrown()), Config.EOL);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
return output.toString();
|
||||
}
|
||||
}
|
84
trunk/java/com/l2jmobius/log/formatter/DamageFormatter.java
Normal file
84
trunk/java/com/l2jmobius/log/formatter/DamageFormatter.java
Normal file
@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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.formatter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Summon;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
public class DamageFormatter extends Formatter
|
||||
{
|
||||
private final SimpleDateFormat dateFmt = new SimpleDateFormat("yy.MM.dd H:mm:ss");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
final Object[] params = record.getParameters();
|
||||
final StringBuilder output = StringUtil.startAppend(30 + record.getMessage().length() + (params == null ? 0 : params.length * 10), "[", dateFmt.format(new Date(record.getMillis())), "] '---': ", record.getMessage());
|
||||
|
||||
if (params != null)
|
||||
{
|
||||
for (Object p : params)
|
||||
{
|
||||
if (p == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (p instanceof L2Character)
|
||||
{
|
||||
if ((p instanceof L2Attackable) && ((L2Attackable) p).isRaid())
|
||||
{
|
||||
StringUtil.append(output, "RaidBoss ");
|
||||
}
|
||||
|
||||
StringUtil.append(output, ((L2Character) p).getName(), "(", String.valueOf(((L2Character) p).getObjectId()), ") ");
|
||||
StringUtil.append(output, String.valueOf(((L2Character) p).getLevel()), " lvl");
|
||||
|
||||
if (p instanceof L2Summon)
|
||||
{
|
||||
final L2PcInstance owner = ((L2Summon) p).getOwner();
|
||||
if (owner != null)
|
||||
{
|
||||
StringUtil.append(output, " Owner:", owner.getName(), "(", String.valueOf(owner.getObjectId()), ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (p instanceof Skill)
|
||||
{
|
||||
StringUtil.append(output, " with skill ", ((Skill) p).getName(), "(", String.valueOf(((Skill) p).getId()), ")");
|
||||
}
|
||||
else
|
||||
{
|
||||
StringUtil.append(output, p.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output.append(Config.EOL);
|
||||
return output.toString();
|
||||
}
|
||||
}
|
89
trunk/java/com/l2jmobius/log/formatter/EnchantFormatter.java
Normal file
89
trunk/java/com/l2jmobius/log/formatter/EnchantFormatter.java
Normal file
@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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.formatter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
public class EnchantFormatter extends Formatter
|
||||
{
|
||||
private final SimpleDateFormat dateFmt = new SimpleDateFormat("dd MMM H:mm:ss");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
final Object[] params = record.getParameters();
|
||||
final StringBuilder output = StringUtil.startAppend(30 + record.getMessage().length() + (params == null ? 0 : params.length * 10), "[", dateFmt.format(new Date(record.getMillis())), "] ", record.getMessage());
|
||||
|
||||
if (params != null)
|
||||
{
|
||||
for (Object p : params)
|
||||
{
|
||||
if (p == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
StringUtil.append(output, ", ");
|
||||
|
||||
if (p instanceof L2PcInstance)
|
||||
{
|
||||
final L2PcInstance player = (L2PcInstance) p;
|
||||
StringUtil.append(output, "Character:", player.getName(), " [" + String.valueOf(player.getObjectId()) + "] Account:", player.getAccountName());
|
||||
if ((player.getClient() != null) && !player.getClient().isDetached())
|
||||
{
|
||||
StringUtil.append(output, " IP:", player.getClient().getConnection().getInetAddress().getHostAddress());
|
||||
}
|
||||
}
|
||||
else if (p instanceof L2ItemInstance)
|
||||
{
|
||||
final L2ItemInstance item = (L2ItemInstance) p;
|
||||
if (item.getEnchantLevel() > 0)
|
||||
{
|
||||
StringUtil.append(output, "+", String.valueOf(item.getEnchantLevel()), " ");
|
||||
}
|
||||
StringUtil.append(output, item.getItem().getName(), "(", String.valueOf(item.getCount()), ")");
|
||||
StringUtil.append(output, " [", String.valueOf(item.getObjectId()), "]");
|
||||
}
|
||||
else if (p instanceof Skill)
|
||||
{
|
||||
final Skill skill = (Skill) p;
|
||||
if (skill.getLevel() > 100)
|
||||
{
|
||||
StringUtil.append(output, "+", String.valueOf(skill.getLevel() % 100), " ");
|
||||
}
|
||||
StringUtil.append(output, skill.getName(), "(", String.valueOf(skill.getId()), " ", String.valueOf(skill.getLevel()), ")");
|
||||
}
|
||||
else
|
||||
{
|
||||
StringUtil.append(output, p.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output.append(Config.EOL);
|
||||
return output.toString();
|
||||
}
|
||||
}
|
41
trunk/java/com/l2jmobius/log/formatter/FileLogFormatter.java
Normal file
41
trunk/java/com/l2jmobius/log/formatter/FileLogFormatter.java
Normal 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.formatter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* This class ...
|
||||
* @version $Revision: 1.1.4.1 $ $Date: 2005/03/27 15:30:08 $
|
||||
*/
|
||||
public class FileLogFormatter extends Formatter
|
||||
{
|
||||
private static final String TAB = "\t";
|
||||
private final SimpleDateFormat dateFmt = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss,SSS");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
return StringUtil.concat(dateFmt.format(new Date(record.getMillis())), TAB, record.getLevel().getName(), TAB, String.valueOf(record.getThreadID()), TAB, record.getLoggerName(), TAB, record.getMessage(), Config.EOL);
|
||||
}
|
||||
}
|
31
trunk/java/com/l2jmobius/log/formatter/GMAuditFormatter.java
Normal file
31
trunk/java/com/l2jmobius/log/formatter/GMAuditFormatter.java
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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.formatter;
|
||||
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
|
||||
public class GMAuditFormatter extends Formatter
|
||||
{
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
return record.getMessage() + Config.EOL;
|
||||
}
|
||||
}
|
71
trunk/java/com/l2jmobius/log/formatter/ItemLogFormatter.java
Normal file
71
trunk/java/com/l2jmobius/log/formatter/ItemLogFormatter.java
Normal file
@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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.formatter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* @author Advi
|
||||
*/
|
||||
public class ItemLogFormatter extends Formatter
|
||||
{
|
||||
private final SimpleDateFormat dateFmt = new SimpleDateFormat("dd MMM H:mm:ss");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
final Object[] params = record.getParameters();
|
||||
final StringBuilder output = StringUtil.startAppend(30 + record.getMessage().length() + (params.length * 50), "[", dateFmt.format(new Date(record.getMillis())), "] ", record.getMessage());
|
||||
|
||||
for (Object p : record.getParameters())
|
||||
{
|
||||
if (p == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
output.append(", ");
|
||||
if (p instanceof L2ItemInstance)
|
||||
{
|
||||
final L2ItemInstance item = (L2ItemInstance) p;
|
||||
StringUtil.append(output, "item ", String.valueOf(item.getObjectId()), ":");
|
||||
if (item.getEnchantLevel() > 0)
|
||||
{
|
||||
StringUtil.append(output, "+", String.valueOf(item.getEnchantLevel()), " ");
|
||||
}
|
||||
|
||||
StringUtil.append(output, item.getItem().getName(), "(", String.valueOf(item.getCount()), ")");
|
||||
}
|
||||
// else if (p instanceof L2PcInstance)
|
||||
// output.append(((L2PcInstance)p).getName());
|
||||
else
|
||||
{
|
||||
output.append(p.toString()/* + ":" + ((L2Object)p).getObjectId() */);
|
||||
}
|
||||
}
|
||||
output.append(Config.EOL);
|
||||
|
||||
return output.toString();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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.formatter;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
public class OlympiadFormatter extends Formatter
|
||||
{
|
||||
private final SimpleDateFormat dateFmt = new SimpleDateFormat("dd/MM/yyyy H:mm:ss");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record)
|
||||
{
|
||||
final Object[] params = record.getParameters();
|
||||
final StringBuilder output = StringUtil.startAppend(30 + record.getMessage().length() + (params == null ? 0 : params.length * 10), dateFmt.format(new Date(record.getMillis())), ",", record.getMessage());
|
||||
if (params != null)
|
||||
{
|
||||
for (Object p : params)
|
||||
{
|
||||
if (p == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
StringUtil.append(output, ",", p.toString());
|
||||
}
|
||||
}
|
||||
output.append(Config.EOL);
|
||||
return output.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class AccountingLogHandler extends FileHandler
|
||||
{
|
||||
public AccountingLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class AllDamageLogHandler extends FileHandler
|
||||
{
|
||||
public AllDamageLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
31
trunk/java/com/l2jmobius/log/handler/AuditLogHandler.java
Normal file
31
trunk/java/com/l2jmobius/log/handler/AuditLogHandler.java
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
/**
|
||||
* @author zabbix
|
||||
*/
|
||||
public class AuditLogHandler extends FileHandler
|
||||
{
|
||||
public AuditLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
28
trunk/java/com/l2jmobius/log/handler/ChatLogHandler.java
Normal file
28
trunk/java/com/l2jmobius/log/handler/ChatLogHandler.java
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class ChatLogHandler extends FileHandler
|
||||
{
|
||||
public ChatLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class EnchantItemLogHandler extends FileHandler
|
||||
{
|
||||
public EnchantItemLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class EnchantSkillLogHandler extends FileHandler
|
||||
{
|
||||
public EnchantSkillLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
28
trunk/java/com/l2jmobius/log/handler/ErrorLogHandler.java
Normal file
28
trunk/java/com/l2jmobius/log/handler/ErrorLogHandler.java
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class ErrorLogHandler extends FileHandler
|
||||
{
|
||||
public ErrorLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
28
trunk/java/com/l2jmobius/log/handler/GMAuditLogHandler.java
Normal file
28
trunk/java/com/l2jmobius/log/handler/GMAuditLogHandler.java
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class GMAuditLogHandler extends FileHandler
|
||||
{
|
||||
public GMAuditLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
31
trunk/java/com/l2jmobius/log/handler/ItemLogHandler.java
Normal file
31
trunk/java/com/l2jmobius/log/handler/ItemLogHandler.java
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
/**
|
||||
* @author Advi
|
||||
*/
|
||||
public class ItemLogHandler extends FileHandler
|
||||
{
|
||||
public ItemLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
28
trunk/java/com/l2jmobius/log/handler/MDamageLogHandler.java
Normal file
28
trunk/java/com/l2jmobius/log/handler/MDamageLogHandler.java
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class MDamageLogHandler extends FileHandler
|
||||
{
|
||||
public MDamageLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
28
trunk/java/com/l2jmobius/log/handler/OlympiadLogHandler.java
Normal file
28
trunk/java/com/l2jmobius/log/handler/OlympiadLogHandler.java
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class OlympiadLogHandler extends FileHandler
|
||||
{
|
||||
public OlympiadLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
28
trunk/java/com/l2jmobius/log/handler/PDamageLogHandler.java
Normal file
28
trunk/java/com/l2jmobius/log/handler/PDamageLogHandler.java
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.handler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
|
||||
public class PDamageLogHandler extends FileHandler
|
||||
{
|
||||
public PDamageLogHandler() throws IOException, SecurityException
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user