
asadmin Utility Subcommands                      set-log-level(1)

NAME
     set-log-level - sets the log level for one or more loggers

SYNOPSIS
     set-log-level [--help] logger-name=logger-level[:logger-name=logger-level]*

DESCRIPTION
     The set-log-level subcommand sets the log level for  one  or
     more  loggers.  Changes  take  effect  dynamically, that is,
     server restart is not required.

     This subcommand is supported in remote mode only.

OPTIONS
     --help
     -?

         Displays the help text for the subcommand.

OPERANDS
     logger-name
         The name of the logger. The  list-logger-levels  subcom-
         mand  can  be  used  to  list  the  names of the current
         loggers.

     logger-level

         The level to set for the logger.  Log level  values  are
         SEVERE,  WARNING, INFO, CONFIG, FINE, FINER, and FINEST.
         The default setting is INFO.

EXAMPLES
     Example 1 Setting a Log Level for a Logger

      This example sets the log level of the web container logger
     to WARNING.

       asadmin> set-log-level javax.enterprise.system.container.web=WARNING
       Command set-log-level executed successfully.

     Example 2 Setting the Log Level for Multiple Loggers

Java EE 6           Last change: 06 Nov 2009                    1

asadmin Utility Subcommands                      set-log-level(1)

     This example sets the log level of the web container  logger
     to  FINE  and  the  log level of the EJB container logger to
     SEVERE:

       asadmin set-log-level javax.enterprise.system.container.web=FINE:
       javax.enterprise.system.container.ejb=SEVERE
       Command set-log-level executed successfully.

EXIT STATUS
     0                           subcommand executed successfully

     1                           error in executing  the  subcom-
                                 mand

SEE ALSO
     list-logger-levels(1), rotate-log(1)

     asadmin(1M)

     Chapter 7, Administering  the  Logging  Service,  in  Oracle
     GlassFish Server 3.0.1 Administration Guide

Java EE 6           Last change: 06 Nov 2009                    2

