vinayakb | 3749969 | 2011-11-09 00:25:02 +0000 | [diff] [blame] | 1 | # "handlers" specifies a comma separated list of log Handler |
| 2 | # classes. These handlers will be installed during VM startup. |
| 3 | # Note that these classes must be on the system classpath. |
| 4 | # By default we only configure a ConsoleHandler, which will only |
| 5 | # show messages at the INFO and above levels. |
| 6 | handlers= java.util.logging.ConsoleHandler |
| 7 | |
| 8 | # To also add the FileHandler, use the following line instead. |
| 9 | #handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler |
| 10 | |
| 11 | # Default global logging level. |
| 12 | # This specifies which kinds of events are logged across |
| 13 | # all loggers. For any given facility this global level |
| 14 | # can be overriden by a facility specific level |
| 15 | # Note that the ConsoleHandler also has a separate level |
| 16 | # setting to limit messages printed to the console. |
vinayakb | 8ca59b4 | 2011-11-09 04:54:20 +0000 | [diff] [blame^] | 17 | .level= WARNING |
vinayakb | 3749969 | 2011-11-09 00:25:02 +0000 | [diff] [blame] | 18 | |
| 19 | ############################################################ |
| 20 | # Handler specific properties. |
| 21 | # Describes specific configuration info for Handlers. |
| 22 | ############################################################ |
| 23 | |
| 24 | # default file output is in user's home directory. |
| 25 | java.util.logging.FileHandler.pattern = %h/java%u.log |
| 26 | java.util.logging.FileHandler.limit = 50000 |
| 27 | java.util.logging.FileHandler.count = 1 |
| 28 | java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter |
| 29 | |
| 30 | # Limit the message that are printed on the console to INFO and above. |
| 31 | java.util.logging.ConsoleHandler.level = INFO |
| 32 | java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter |
| 33 | |
| 34 | |
| 35 | ############################################################ |
| 36 | # Facility specific properties. |
| 37 | # Provides extra control for each logger. |
| 38 | ############################################################ |
| 39 | |
| 40 | # For example, set the com.xyz.foo logger to only log SEVERE |
| 41 | # messages: |
| 42 | com.xyz.foo.level = SEVERE |