logging.properties 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ############################################################
  2. # Default Logging Configuration File
  3. #
  4. # You can use a different file by specifying a filename
  5. # with the java.util.logging.config.file system property.
  6. # For example java -Djava.util.logging.config.file=myfile
  7. ############################################################
  8. ############################################################
  9. # Global properties
  10. ############################################################
  11. # "handlers" specifies a comma separated list of log Handler
  12. # classes. These handlers will be installed during VM startup.
  13. # Note that these classes must be on the system classpath.
  14. # By default we only configure a ConsoleHandler, which will only
  15. # show messages at the INFO and above levels.
  16. handlers= java.util.logging.ConsoleHandler
  17. # To also add the FileHandler, use the following line instead.
  18. #handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
  19. # Default global logging level.
  20. # This specifies which kinds of events are logged across
  21. # all loggers. For any given facility this global level
  22. # can be overriden by a facility specific level
  23. # Note that the ConsoleHandler also has a separate level
  24. # setting to limit messages printed to the console.
  25. .level= INFO
  26. ############################################################
  27. # Handler specific properties.
  28. # Describes specific configuration info for Handlers.
  29. ############################################################
  30. # default file output is in user's home directory.
  31. java.util.logging.FileHandler.pattern = %h/java%u.log
  32. java.util.logging.FileHandler.limit = 50000
  33. java.util.logging.FileHandler.count = 1
  34. java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
  35. # Limit the message that are printed on the console to INFO and above.
  36. java.util.logging.ConsoleHandler.level = INFO
  37. java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
  38. # Example to customize the SimpleFormatter output format
  39. # to print one-line log message like this:
  40. # <level>: <log message> [<date/time>]
  41. #
  42. # java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n
  43. ############################################################
  44. # Facility specific properties.
  45. # Provides extra control for each logger.
  46. ############################################################
  47. # For example, set the com.xyz.foo logger to only log SEVERE
  48. # messages:
  49. com.xyz.foo.level = SEVERE