Configuring the Java Log

To configure the Java log created with the CJAVA-LOGMESSAGE op-code, modify the "logging.properties" file that is located in the runtime directory. The output location of the log (console or file) can be specified, as well as the log level, for example, INFO or SEVERE. Below is a sample of the "logging.properties" file:

# setting to limit messages printed to the console.
.level= INFO
#.level= FINEST

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

# default file output is in user's home directory.
#java.util.logging.FileHandler.pattern = %h/java%u.log
java.util.logging.FileHandler.pattern = CVM.log
java.util.logging.FileHandler.limit = 500000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.append = false
java.util.logging.FileHandler.level = INFO
#java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
#java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.FileHandler.formatter = com.acucorp.acucobolgt.logFormat

# Limit the message that are printed on the console to INFO and above.
#java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.level = INFO
#java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.ConsoleHandler.formatter = com.acucorp.acucobolgt.logFormat

############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

# For example, set the com.acucorp.acucobolgt.CVM logger to only log SEVERE
# messages:
#com.acucorp.acucobolgt.CVM.level = SEVERE
com.acucorp.acucobolgt.CVM.level = INFO
#acuCobolGT.CAcuCobol.level = SEVERE
acuCobolGT.CAcuCobol.level = INFO
#acuUtilities.AcuJavaTest.level = SEVERE
acuUtilities.AcuJavaTest.level = INFO