jdk/src/java.logging/share/conf/logging.properties
author rpatil
Mon, 27 Jun 2016 11:52:49 +0530
changeset 39307 35eab41d2df1
parent 25859 3317bb8137f4
permissions -rw-r--r--
8153955: increase java.util.logging.FileHandler MAX_LOCKS limit Summary: This patch adds a new configurable property "java.util.logging.FileHandler.maxLocks" to java.util.logging.FileHandler which can be defined in the logging configuration file and makes it possible to configure the maximum number of concurrent log file locks a FileHandler can handle. If not overridden, the default value of maxLocks (100) remains unchanged. Reviewed-by: dfuchs, coffeys
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
#  	Default Logging Configuration File
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
# You can use a different file by specifying a filename
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# with the java.util.logging.config.file system property.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# For example java -Djava.util.logging.config.file=myfile
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#  	Global properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# "handlers" specifies a comma separated list of log Handler 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# classes.  These handlers will be installed during VM startup.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# Note that these classes must be on the system classpath.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
# By default we only configure a ConsoleHandler, which will only
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# show messages at the INFO and above levels.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
handlers= java.util.logging.ConsoleHandler
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
# To also add the FileHandler, use the following line instead.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
#handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# Default global logging level.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
# This specifies which kinds of events are logged across
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
# all loggers.  For any given facility this global level
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
# can be overriden by a facility specific level
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Note that the ConsoleHandler also has a separate level
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
# setting to limit messages printed to the console.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.level= INFO
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
# Handler specific properties.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
# Describes specific configuration info for Handlers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
# default file output is in user's home directory.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
java.util.logging.FileHandler.pattern = %h/java%u.log
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
java.util.logging.FileHandler.limit = 50000
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
java.util.logging.FileHandler.count = 1
39307
35eab41d2df1 8153955: increase java.util.logging.FileHandler MAX_LOCKS limit
rpatil
parents: 25859
diff changeset
    40
# Default number of locks FileHandler can obtain synchronously.
35eab41d2df1 8153955: increase java.util.logging.FileHandler MAX_LOCKS limit
rpatil
parents: 25859
diff changeset
    41
# This specifies maximum number of attempts to obtain lock file by FileHandler
35eab41d2df1 8153955: increase java.util.logging.FileHandler MAX_LOCKS limit
rpatil
parents: 25859
diff changeset
    42
# implemented by incrementing the unique field %u as per FileHandler API documentation.
35eab41d2df1 8153955: increase java.util.logging.FileHandler MAX_LOCKS limit
rpatil
parents: 25859
diff changeset
    43
java.util.logging.FileHandler.maxLocks = 100
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
# Limit the message that are printed on the console to INFO and above.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
java.util.logging.ConsoleHandler.level = INFO
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
9014
117374ccf1b7 6381464: SimpleFormatter should use one single line format
mchung
parents: 2
diff changeset
    50
# Example to customize the SimpleFormatter output format 
117374ccf1b7 6381464: SimpleFormatter should use one single line format
mchung
parents: 2
diff changeset
    51
# to print one-line log message like this:
117374ccf1b7 6381464: SimpleFormatter should use one single line format
mchung
parents: 2
diff changeset
    52
#     <level>: <log message> [<date/time>]
117374ccf1b7 6381464: SimpleFormatter should use one single line format
mchung
parents: 2
diff changeset
    53
#
117374ccf1b7 6381464: SimpleFormatter should use one single line format
mchung
parents: 2
diff changeset
    54
# java.util.logging.SimpleFormatter.format=%4$s: %5$s [%1$tc]%n
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
# Facility specific properties.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
# Provides extra control for each logger.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
############################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
# For example, set the com.xyz.foo logger to only log SEVERE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
# messages:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
com.xyz.foo.level = SEVERE