book
Article ID: KB0090630
calendar_today
Updated On:
Description
Resolution:
Resolution:
=========
By default, EMSCA creates its log file according to logging.properties under <java_home>\jre\lib. Refer to http://download.java.net/jdk7/archive/b123/docs/api/java/util/logging/FileHandler.html.
1). You can check the command in tibemsca.bat and find which version ofJava you are using. With this default setting, all logging information is printed to console. To enable File Handler, try the following in logging.properties:
handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
java.util.logging.FileHandler.pattern = c:/tibemsdca.log
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.FileHandler.append = true
2). If you want to use a different logging.properties than the one in <JRE_HOME>/lib, you can copy the file to a different directory and modify it. Then pass the location to java command as option. In tibemsca.bat, use the following, for example:
"C:\Program Files\Java\jdk1.7.0_03\jre\bin\java" -Djava.util.logging.config.file=<propfile_path>\logging.properties -classpath "%CLASSPATH%" com.tibco.messaging.emsca.internal.CentralAdminServer %1 %2 %3 %4 %5 %6 %7 %8 %9
3). You can also direct the console output to a file:
tibemsca > tibemsca.log 2>&1
Environment:
==========
All
Issue/Introduction
How to enable logging in EMSCA?