2
0

log.cfg 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. ############################################################
  2. # Global properties
  3. ############################################################
  4. # "handlers" specifies a comma separated list of log Handler
  5. # classes. These handlers will be installed during VM startup.
  6. # Note that these classes must be on the system classpath.
  7. # By default we only configure a ConsoleHandler, which will only
  8. # show messages at the INFO and above levels.
  9. #handlers= java.util.logging.ConsoleHandler
  10. # To also add the FileHandler, use the following line instead.
  11. handlers = java.util.logging.FileHandler,java.util.logging.ConsoleHandler,\
  12. com.l2jserver.log.ErrorLogHandler
  13. chat.handlers = com.l2jserver.log.ChatLogHandler
  14. chat.useParentHandlers = false
  15. gmaudit.handlers = com.l2jserver.log.GMAuditLogHandler
  16. gmaudit.useParentHandlers = false
  17. item.handlers = com.l2jserver.log.ItemLogHandler
  18. item.useParentHandlers = false
  19. audit.handlers = com.l2jserver.log.AuditLogHandler
  20. audit.useParentHandlers = false
  21. enchant.handlers = com.l2jserver.log.EnchantItemLogHandler,\
  22. com.l2jserver.log.EnchantSkillLogHandler
  23. enchant.useParentHandlers = false
  24. olympiad.handlers = com.l2jserver.log.OlympiadLogHandler
  25. olympiad.useParentHandlers = false
  26. damage.handlers = com.l2jserver.log.AllDamageLogHandler,\
  27. com.l2jserver.log.PDamageLogHandler, com.l2jserver.log.MDamageLogHandler
  28. damage.useParentHandlers = false
  29. accounting.handlers = com.l2jserver.log.AccountingLogHandler
  30. accounting.useParentHandlers = false
  31. # Default global logging level.
  32. # This specifies which kinds of events are logged across
  33. # all loggers. For any given facility this global level
  34. # can be overriden by a facility specific level
  35. # Note that the ConsoleHandler also has a separate level
  36. # setting to limit messages printed to the console.
  37. .level= CONFIG
  38. ############################################################
  39. # Handler specific properties.
  40. # Describes specific configuration info for Handlers.
  41. ############################################################
  42. # default file output is in user's home directory.
  43. java.util.logging.FileHandler.pattern = log/java%g.log
  44. java.util.logging.FileHandler.count = 20
  45. java.util.logging.FileHandler.limit = 0
  46. java.util.logging.FileHandler.formatter = com.l2jserver.log.FileLogFormatter
  47. java.util.logging.FileHandler.level = CONFIG
  48. # Limit the message that are printed on the console to INFO and above.
  49. java.util.logging.ConsoleHandler.level = FINER
  50. java.util.logging.ConsoleHandler.formatter = com.l2jserver.log.ConsoleLogFormatter
  51. # log errors (exceptions)
  52. com.l2jserver.log.ErrorLogHandler.pattern = log/error%g.log
  53. com.l2jserver.log.ErrorLogHandler.count = 20
  54. com.l2jserver.log.ErrorLogHandler.limit = 0
  55. com.l2jserver.log.ErrorLogHandler.formatter = java.util.logging.SimpleFormatter
  56. com.l2jserver.log.ErrorLogHandler.filter = com.l2jserver.log.ErrorFilter
  57. com.l2jserver.log.ErrorLogHandler.level = CONFIG
  58. # log chats
  59. com.l2jserver.log.ChatLogHandler.pattern = log/chat.log
  60. com.l2jserver.log.ChatLogHandler.formatter = com.l2jserver.log.ChatLogFormatter
  61. com.l2jserver.log.ChatLogHandler.filter = com.l2jserver.log.ChatFilter
  62. com.l2jserver.log.ChatLogHandler.append = true
  63. com.l2jserver.log.ChatLogHandler.level = INFO
  64. # log GM Audit
  65. com.l2jserver.log.GMAuditLogHandler.pattern = log/gmaudit.log
  66. com.l2jserver.log.GMAuditLogHandler.formatter = com.l2jserver.log.GMAuditFormatter
  67. com.l2jserver.log.GMAuditLogHandler.filter = com.l2jserver.log.GMAuditFilter
  68. com.l2jserver.log.GMAuditLogHandler.append = true
  69. com.l2jserver.log.GMAuditLogHandler.level = INFO
  70. # log items
  71. com.l2jserver.log.ItemLogHandler.pattern = log/item.log
  72. com.l2jserver.log.ItemLogHandler.formatter = com.l2jserver.log.ItemLogFormatter
  73. com.l2jserver.log.ItemLogHandler.filter = com.l2jserver.log.ItemFilter
  74. com.l2jserver.log.ItemLogHandler.append = true
  75. com.l2jserver.log.ItemLogHandler.level = INFO
  76. # audit
  77. com.l2jserver.log.AuditLogHandler.pattern = log/audit.log
  78. com.l2jserver.log.AuditLogHandler.formatter = com.l2jserver.log.AuditFormatter
  79. com.l2jserver.log.AuditLogHandler.filter = com.l2jserver.log.AuditFilter
  80. com.l2jserver.log.AuditLogHandler.append = true
  81. com.l2jserver.log.AuditLogHandler.level = INFO
  82. # enchant item log
  83. com.l2jserver.log.EnchantItemLogHandler.pattern = log/enchantitem.log
  84. com.l2jserver.log.EnchantItemLogHandler.formatter = com.l2jserver.log.EnchantFormatter
  85. com.l2jserver.log.EnchantItemLogHandler.filter = com.l2jserver.log.EnchantItemFilter
  86. com.l2jserver.log.EnchantItemLogHandler.append = true
  87. com.l2jserver.log.EnchantItemLogHandler.level = INFO
  88. # enchant skill log
  89. com.l2jserver.log.EnchantSkillLogHandler.pattern = log/enchantskill.log
  90. com.l2jserver.log.EnchantSkillLogHandler.formatter = com.l2jserver.log.EnchantFormatter
  91. com.l2jserver.log.EnchantSkillLogHandler.filter = com.l2jserver.log.EnchantSkillFilter
  92. com.l2jserver.log.EnchantSkillLogHandler.append = true
  93. com.l2jserver.log.EnchantSkillLogHandler.level = INFO
  94. # olympiad log
  95. com.l2jserver.log.OlympiadLogHandler.pattern = log/olympiad.csv
  96. com.l2jserver.log.OlympiadLogHandler.formatter = com.l2jserver.log.OlympiadFormatter
  97. com.l2jserver.log.OlympiadLogHandler.append = true
  98. com.l2jserver.log.OlympiadLogHandler.level = INFO
  99. # damage logs
  100. com.l2jserver.log.AllDamageLogHandler.pattern = log/game/_all.txt
  101. com.l2jserver.log.AllDamageLogHandler.formatter = com.l2jserver.log.DamageFormatter
  102. com.l2jserver.log.AllDamageLogHandler.append = true
  103. com.l2jserver.log.AllDamageLogHandler.level = INFO
  104. com.l2jserver.log.PDamageLogHandler.pattern = log/game/damage_pdam.txt
  105. com.l2jserver.log.PDamageLogHandler.formatter = com.l2jserver.log.DamageFormatter
  106. com.l2jserver.log.PDamageLogHandler.filter = com.l2jserver.log.PDamageFilter
  107. com.l2jserver.log.PDamageLogHandler.append = true
  108. com.l2jserver.log.PDamageLogHandler.level = INFO
  109. com.l2jserver.log.MDamageLogHandler.pattern = log/game/damage_mdam.txt
  110. com.l2jserver.log.MDamageLogHandler.formatter = com.l2jserver.log.DamageFormatter
  111. com.l2jserver.log.MDamageLogHandler.filter = com.l2jserver.log.MDamageFilter
  112. com.l2jserver.log.MDamageLogHandler.append = true
  113. com.l2jserver.log.MDamageLogHandler.level = INFO
  114. # accounting
  115. com.l2jserver.log.AccountingLogHandler.pattern = log/accounting.log
  116. com.l2jserver.log.AccountingLogHandler.formatter = com.l2jserver.log.AccountingFormatter
  117. com.l2jserver.log.AccountingLogHandler.append = true
  118. com.l2jserver.log.AccountingLogHandler.level = CONFIG
  119. ############################################################
  120. # Facility specific properties.
  121. # Provides extra control for each logger.
  122. ############################################################
  123. # For example, set the com.xyz.foo logger to only log SEVERE
  124. # messages:
  125. com.l2jserver.gameserver.level = CONFIG
  126. com.l2jserver.loginserver.level = CONFIG
  127. #com.l2jserver.gameserver.Connection.level = CONFIG
  128. com.l2jserver.gameserver.network.serverpackets.level = FINER
  129. com.l2jserver.gameserver.network.clientpackets.level = FINER
  130. com.l2jserver.gameserver.model.actor.L2Character.level = FINER
  131. com.l2jserver.gameserver.skills.SkillsEngine.level = WARNING
  132. # Alt Privileges Administration
  133. AltPrivilegesAdmin.pattern = log/admin-commands.log
  134. AltPrivilegesAdmin.formatter = com.l2jserver.log.FileLogFormatter
  135. AltPrivilegesAdmin.append = true
  136. AltPrivilegesAdmin.level = CONFIG
  137. # c3p0 Logging
  138. com.mchange.v2.level = WARNING