log.cfg 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. # Default global logging level.
  14. # This specifies which kinds of events are logged across
  15. # all loggers. For any given facility this global level
  16. # can be overriden by a facility specific level
  17. # Note that the ConsoleHandler also has a separate level
  18. # setting to limit messages printed to the console.
  19. .level= CONFIG
  20. ############################################################
  21. # Handler specific properties.
  22. # Describes specific configuration info for Handlers.
  23. ############################################################
  24. # default file output is in user's home directory.
  25. java.util.logging.FileHandler.pattern = log/java%u.log
  26. java.util.logging.FileHandler.limit = 500000
  27. java.util.logging.FileHandler.count = 5
  28. java.util.logging.FileHandler.formatter = com.l2jserver.log.FileLogFormatter
  29. java.util.logging.FileHandler.level = CONFIG
  30. # Limit the message that are printed on the console to INFO and above.
  31. java.util.logging.ConsoleHandler.level = FINER
  32. java.util.logging.ConsoleHandler.formatter = com.l2jserver.log.ConsoleLogFormatter
  33. # log errors (exceptions)
  34. com.l2jserver.ErrorLogHandler.pattern = log/error%u.log
  35. com.l2jserver.ErrorLogHandler.count = 5
  36. com.l2jserver.ErrorLogHandler.formatter = java.util.logging.SimpleFormatter
  37. com.l2jserver.ErrorLogHandler.filter = com.l2jserver.log.ErrorFilter
  38. com.l2jserver.ErrorLogHandler.level = CONFIG
  39. # audit
  40. com.l2jserver.AuditLogHandler.pattern = log/audit.log
  41. com.l2jserver.AuditLogHandler.formatter = com.l2jserver.log.AuditFormatter
  42. com.l2jserver.AuditLogHandler.filter = com.l2jserver.log.AuditFilter
  43. com.l2jserver.AuditLogHandler.append = true
  44. com.l2jserver.AuditLogHandler.level = INFO