src/share/lib/logging.properties

Print this page




  26 # can be overriden by a facility specific level
  27 # Note that the ConsoleHandler also has a separate level
  28 # setting to limit messages printed to the console.
  29 .level= INFO
  30 
  31 ############################################################
  32 # Handler specific properties.
  33 # Describes specific configuration info for Handlers.
  34 ############################################################
  35 
  36 # default file output is in user's home directory.
  37 java.util.logging.FileHandler.pattern = %h/java%u.log
  38 java.util.logging.FileHandler.limit = 50000
  39 java.util.logging.FileHandler.count = 1
  40 java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
  41 
  42 # Limit the message that are printed on the console to INFO and above.
  43 java.util.logging.ConsoleHandler.level = INFO
  44 java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
  45 





  46 
  47 ############################################################
  48 # Facility specific properties.
  49 # Provides extra control for each logger.
  50 ############################################################
  51 
  52 # For example, set the com.xyz.foo logger to only log SEVERE
  53 # messages:
  54 com.xyz.foo.level = SEVERE


  26 # can be overriden by a facility specific level
  27 # Note that the ConsoleHandler also has a separate level
  28 # setting to limit messages printed to the console.
  29 .level= INFO
  30 
  31 ############################################################
  32 # Handler specific properties.
  33 # Describes specific configuration info for Handlers.
  34 ############################################################
  35 
  36 # default file output is in user's home directory.
  37 java.util.logging.FileHandler.pattern = %h/java%u.log
  38 java.util.logging.FileHandler.limit = 50000
  39 java.util.logging.FileHandler.count = 1
  40 java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
  41 
  42 # Limit the message that are printed on the console to INFO and above.
  43 java.util.logging.ConsoleHandler.level = INFO
  44 java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
  45 
  46 # Example to customize the SimpleFormatter output format 
  47 # to print one-line log message like this:
  48 #     <level>: <log message> [<date/time>]
  49 #
  50 # java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n
  51 
  52 ############################################################
  53 # Facility specific properties.
  54 # Provides extra control for each logger.
  55 ############################################################
  56 
  57 # For example, set the com.xyz.foo logger to only log SEVERE
  58 # messages:
  59 com.xyz.foo.level = SEVERE