############################################################
#  	Global properties
############################################################

# "handlers" specifies a comma separated list of log Handler 
# classes.  These handlers will be installed during VM startup.
# Note that these classes must be on the system classpath.
# By default we only configure a ConsoleHandler, which will only
# show messages at the INFO and above levels.
#handlers = java.util.logging.ConsoleHandler

# To also add the FileHandler, use the following line instead.
handlers = java.util.logging.FileHandler,java.util.logging.ConsoleHandler,\
           com.l2jcore.logs.ErrorLogHandler
alliance.handlers = com.l2jcore.logs.chat.ChatAlliance
announce.handlers = com.l2jcore.logs.chat.ChatAnnounce
clan.handlers = com.l2jcore.logs.chat.ChatClan
all.handlers = com.l2jcore.logs.chat.ChatGeneral
gm.handlers = com.l2jcore.logs.chat.ChatGM
hero_voice.handlers = com.l2jcore.logs.chat.ChatHero
party.handlers = com.l2jcore.logs.chat.ChatParty
petition.handlers = com.l2jcore.logs.chat.ChatPetition
tell.handlers = com.l2jcore.logs.chat.ChatPrivate
shout.handlers = com.l2jcore.logs.chat.ChatShout
trade.handlers = com.l2jcore.logs.chat.ChatTrade
alliance.useParentHandlers = False
announce.useParentHandlers = False
clan.useParentHandlers = False
all.useParentHandlers = False
gm.useParentHandlers = False
hero_voice.useParentHandlers = False
party.useParentHandlers = False
petition.useParentHandlers = False
tell.useParentHandlers = False
shout.useParentHandlers = False
trade.useParentHandlers = False
gmaudit.handlers = com.l2jcore.logs.GMAuditLogHandler
gmaudit.useParentHandlers = False
item.handlers = com.l2jcore.logs.ItemLogHandler
item.useParentHandlers = False
audit.handlers = com.l2jcore.logs.AuditLogHandler
audit.useParentHandlers = False


# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers.  For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level = CONFIG

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = log/java%u.log
java.util.logging.FileHandler.limit = 500000
java.util.logging.FileHandler.count = 5
java.util.logging.FileHandler.formatter = com.l2jcore.logs.FileLogFormatter
java.util.logging.FileHandler.level = CONFIG

# Limit the message that are printed on the console to INFO and above.
java.util.logging.ConsoleHandler.level = FINER
java.util.logging.ConsoleHandler.formatter = com.l2jcore.logs.ConsoleLogFormatter

# log errors (exceptions)
com.l2jcore.logs.ErrorLogHandler.pattern = log/error%u.log
com.l2jcore.logs.ErrorLogHandler.count = 5
com.l2jcore.logs.ErrorLogHandler.formatter = java.util.logging.SimpleFormatter
com.l2jcore.logs.ErrorLogHandler.level = CONFIG

# log alliance chat
com.l2jcore.logs.chat.ChatAlliance.pattern = log/chat/alliance%u.log
com.l2jcore.logs.chat.ChatAlliance.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatAlliance.append = True
com.l2jcore.logs.chat.ChatAlliance.level = INFO
com.l2jcore.logs.chat.ChatAlliance.encoding = UTF-8

# log announce chat
com.l2jcore.logs.chat.ChatAnnounce.pattern = log/chat/announce%u.log
com.l2jcore.logs.chat.ChatAnnounce.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatAnnounce.append = True
com.l2jcore.logs.chat.ChatAnnounce.level = INFO
com.l2jcore.logs.chat.ChatAnnounce.encoding = UTF-8

# log clan chat
com.l2jcore.logs.chat.ChatClan.pattern = log/chat/clan%u.log
com.l2jcore.logs.chat.ChatClan.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatClan.append = True
com.l2jcore.logs.chat.ChatClan.level = INFO
com.l2jcore.logs.chat.ChatClan.encoding = UTF-8

# log general chat
com.l2jcore.logs.chat.ChatGeneral.pattern = log/chat/all%u.log
com.l2jcore.logs.chat.ChatGeneral.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatGeneral.append = True
com.l2jcore.logs.chat.ChatGeneral.level = INFO
com.l2jcore.logs.chat.ChatGeneral.encoding = UTF-8

# log gm chat
com.l2jcore.logs.chat.ChatGM.pattern = log/chat/gm%u.log
com.l2jcore.logs.chat.ChatGM.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatGM.append = True
com.l2jcore.logs.chat.ChatGM.level = INFO
com.l2jcore.logs.chat.ChatGM.encoding = UTF-8

# log hero chat
com.l2jcore.logs.chat.ChatHero.pattern = log/chat/hero_voice%u.log
com.l2jcore.logs.chat.ChatHero.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatHero.append = True
com.l2jcore.logs.chat.ChatHero.level = INFO
com.l2jcore.logs.chat.ChatHero.encoding = UTF-8

# log party chat
com.l2jcore.logs.chat.ChatParty.pattern = log/chat/party%u.log
com.l2jcore.logs.chat.ChatParty.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatParty.append = True
com.l2jcore.logs.chat.ChatParty.level = INFO
com.l2jcore.logs.chat.ChatParty.encoding = UTF-8

# log petition chat
com.l2jcore.logs.chat.ChatPetition.pattern = log/chat/petition%u.log
com.l2jcore.logs.chat.ChatPetition.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatPetition.append = True
com.l2jcore.logs.chat.ChatPetition.level = INFO
com.l2jcore.logs.chat.ChatPetition.encoding = UTF-8

# log private chat
com.l2jcore.logs.chat.ChatPrivate.pattern = log/chat/private%u.log
com.l2jcore.logs.chat.ChatPrivate.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatPrivate.append = True
com.l2jcore.logs.chat.ChatPrivate.level = INFO
com.l2jcore.logs.chat.ChatPrivate.encoding = UTF-8

# log shout chat
com.l2jcore.logs.chat.ChatShout.pattern = log/chat/shout%u.log
com.l2jcore.logs.chat.ChatShout.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatShout.append = True
com.l2jcore.logs.chat.ChatShout.level = INFO
com.l2jcore.logs.chat.ChatShout.encoding = UTF-8

# log trade chat
com.l2jcore.logs.chat.ChatTrade.pattern = log/chat/trade%u.log
com.l2jcore.logs.chat.ChatTrade.formatter = com.l2jcore.logs.chat.ChatLogFormatter
com.l2jcore.logs.chat.ChatTrade.append = True
com.l2jcore.logs.chat.ChatTrade.level = INFO
com.l2jcore.logs.chat.ChatTrade.encoding = UTF-8

# log GM commands
com.l2jcore.logs.GMAuditLogHandler.pattern = log/gmaudit.log
com.l2jcore.logs.GMAuditLogHandler.formatter = com.l2jcore.logs.GMAuditFormatter
com.l2jcore.logs.GMAuditLogHandler.append = True
com.l2jcore.logs.GMAuditLogHandler.level = INFO

# log items
com.l2jcore.logs.ItemLogHandler.pattern = log/item.log
com.l2jcore.logs.ItemLogHandler.formatter = com.l2jcore.logs.ItemLogFormatter
com.l2jcore.logs.ItemLogHandler.append = True
com.l2jcore.logs.ItemLogHandler.level = INFO

# audit
com.l2jcore.logs.AuditLogHandler.pattern = log/audit.log
com.l2jcore.logs.AuditLogHandler.formatter = com.l2jcore.logs.AuditFormatter
com.l2jcore.logs.AuditLogHandler.append = True
com.l2jcore.logs.AuditLogHandler.level = INFO


############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
com.l2jcore.gameserver.level = CONFIG
com.l2jcore.loginserver.level = CONFIG
com.l2jcore.gameserver.Connection.level = CONFIG
com.l2jcore.gameserver.serverpackets.level = FINER
com.l2jcore.gameserver.clientpackets.level = FINER
com.l2jcore.gameserver.model.L2Character.level = FINER
com.l2jcore.gameserver.skills.SkillsEngine.level = WARNING

# Alt Privileges Administration
AltPrivilegesAdmin.pattern = log/admin-commands.log
AltPrivilegesAdmin.formatter = com.l2jcore.logs.FileLogFormatter
AltPrivilegesAdmin.append = True
AltPrivilegesAdmin.level = CONFIG