logging.properties 2.9 KB

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