users@glassfish.java.net

Modifying glassfish log levels via asadmin?

From: Weden Jason-RWC467 <jweden_at_motorola.com>
Date: Mon, 4 May 2009 15:57:01 -0400

Hi,

I'm creating a script that configures glassfish. While I know log
levels (as shown in the domain.xml snippet below) can be configured via
the web interface, is there a corresponding asadmin command that can do
this?

<log-service alarms="false"
file="${com.sun.aas.instanceRoot}/logs/server.log"
log-rotation-limit-in-bytes="2000000" log-rotation
-timelimit-in-minutes="0" log-to-console="false"
retain-error-statistics-for-hours="5" use-system-logging="false">
        <module-log-levels admin="INFO" classloader="INFO" cmp="INFO"
cmp-container="INFO" configuration="INFO" connector="INFO" corba=
"INFO" deployment="INFO" ejb-container="INFO"
group-management-service="INFO" javamail="INFO" jaxr="INFO"
jaxrpc="INFO" jdo="INFO" jms=
"INFO" jta="INFO" jts="INFO" management-event="INFO"
mdb-container="INFO" naming="INFO" node-agent="INFO"
resource-adapter="INFO" root=
"INFO" saaj="INFO" security="INFO" self-management="INFO" server="INFO"
synchronization="INFO" util="INFO" verifier="INFO" web-containe
r="INFO">
          <property name="clb" value="INFO"/>
          <property name="sip" value="INFO"/>
          <property name="ar" value="INFO"/>
          <property name="ssr" value="INFO"/>
          <property name="smi" value="INFO"/>


Regards,
 
Jason Weden
FTTP AXSVision Software Development
Access Networks, Home and Networks Mobility
Motorola, Inc.
978-614-3182