Question & Answer
Question
There are three kinds of logs for DB2 Text search engine: (1) deafultnn.log (2) tracen.log (3) commandLineToolsn.log When we want to change the log path, the number of log files or the file size, how can we configure these log settings?
Answer
Logging properties for (1)deafultnn.log and (2) tracen.log can be set in ecmts_logging.properties, and for (3) commandLineToolsn.log can be set in ecmts_config_logging.properties.
These property files can be edited manually. It is always safe to stop the server, edit file and start server. No configTool command is required after the change.
Here are default settings:
(1) deafultnn.log
(2) tracen.log
--------------------
ecmts_logging.properties
--------------------
############################################################
# Describes specific configuration information for the file handler
############################################################
# default file output is in user's home directory.
java.util.logging.FileHandler.pattern =
/home/db2inst1/sqllib/db2tss/log/trace%g.log
java.util.logging.FileHandler.limit = 10000000
java.util.logging.FileHandler.count = 10
..(snip)..
com.ibm.es.nuvo.logging.FileHandlerForErrors.pattern =
/home/db2inst1/sqllib/db2tss/log/default%g.log
com.ibm.es.nuvo.logging.FileHandlerForErrors.limit = 10000000
com.ibm.es.nuvo.logging.FileHandlerForErrors.count = 20
(3) commandLineToolsn.log
--------------------
ecmts_config_logging.properties
--------------------
############################################################
# Describes specific configuration information for the file handler
############################################################
# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = ../log/commandLineTools%g.log
java.util.logging.FileHandler.formatter =
java.util.logging.SimpleFormatter
java.util.logging.FileHandler.limit = 10000000
java.util.logging.FileHandler.count = 10
Related Information
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21698975