logging.properties 2.8 KB

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