Java CAPSasadminloggingmanagement
Java CAPSasadminloggingmanagement
1 Field Notes
Table of Contents
Introduction....................................................................................................................1
Determining logging configuration................................................................................1
Changing log levels for specific logging categories ......................................................4
More examples...............................................................................................................5
Introduction
In Java CAPS 5.1 the Sun SeeBeyond Integration Server is a modified version of the
Sun Application Server 8.0 Platform Edition. As such a number of things that can be
done with that application server can be done with the Sun SeeBeyond Integration
Server. Most notably, it can be managed at runtime using the isadmin tool much the
same way as the Sun Application Server 8.0 PE can be managed using the asadmin
tool.
Additional material on the Sun Application Server 8.0 Platform Edition can be found
on Sun’s documentation site and elsewhere:
http://docs.sun.com/app/docs/coll/ApplicationServer8_04q2
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Overview8.html
This note discusses how the isadmin tool can be used to manage runtime logging of
the Sun SeeBeyond Integration Server. This note applies to the Sun SeeBeyond
Integration Server included in Java CAPS 5.1.
server.log-service.alarms = false
server.log-service.file =
C:/JCAPS513/logicalhost/is/domains/wssec/logs/server.log
server.log-service.log-filter = <null>
server.log-service.log-handler = <null>
server.log-service.log-rotation-limit-in-bytes = 10000000
server.log-service.log-to-console = false
server.log-service.module-log-levels.admin = INFO
server.log-service.module-log-levels.classloader = INFO
server.log-service.module-log-levels.cmp = INFO
.
.
.
server.log-service.module-log-levels.verifier = INFO
server.log-service.module-log-levels.web-container = INFO
Note that all dots “.” in the logging category STC.eWay.framework.management have
been escaped with the backslash “\”.
To change the value of the logging category one would issue the following command,
where log level to set is one of OFF, SEVER, WARNING, INFO, CONFIG, FINE,
FINER, FINEST:
C:\JCAPS513\logicalhost\is\bin>isadmin set -p 20000 server.log-service.module-log-
levels.property.STC\.eWay\.framework\.management=F
INE
server.log-service.module-log-levels.property.STC.eWay.framework.management = FINE
The command executes and displays the current logging level for the category.
Note that specifying partial category name for the get command does not return a
partial category but results in an error, for example:
C:\JCAPS513\logicalhost\is\bin>isadmin get -p 20000 server.log-service.module-log-
levels.property.STC\.eWay\.framework
STC.eWay.framework
CLI137 Command get failed.
Issuing a set command with a category name not already in the domain.xml causes
that category property element to be created and set in the domain.xml:
C:\JCAPS513\logicalhost\is\bin>isadmin set -p 20000 server.log-service.module-log-
levels.property.STC\.eWay\.framework=CONFIG
server.log-service.module-log-levels.property.STC.eWay.framework = CONFIG
More examples
Get the value of the log level for the logging category javax.xml.messaging.saaj
To change this logging category logging level to INFO one would use the set
command:
isadmin set -p 20000 ^
server.log-service.module-log-levels.property.javax\.xml\.messaging\.saaj=INFO