Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands
create-connector-connection-pool(1)
create-connector-security-map(1)
create-connector-work-security-map(1)
create-jdbc-connection-pool(1)
create-message-security-provider(1)
create-resource-adapter-config(1)
delete-connector-connection-pool(1)
delete-connector-security-map(1)
delete-connector-work-security-map(1)
delete-jdbc-connection-pool(1)
delete-message-security-provider(1)
delete-resource-adapter-config(1)
disable-http-lb-application(1)
disable-secure-admin-internal-user(1)
disable-secure-admin-principal(1)
enable-secure-admin-internal-user(1)
enable-secure-admin-principal(1)
list-connector-connection-pools(1)
list-connector-security-maps(1)
list-connector-work-security-maps(1)
list-message-security-providers(1)
list-resource-adapter-configs(1)
list-secure-admin-internal-users(1)
list-secure-admin-principals(1)
list-supported-cipher-suites(1)
unfreeze-transaction-service(1)
update-admin-server-coordinates(1)
update-admin-server-local-coordinates(1)
update-connector-security-map(1)
update-connector-work-security-map(1)
Oracle GlassFish Server 3.1 Section 1M: Utility Commands
Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts
- sets the logging attributes for one or more loggers
set-log-attributes [--help] [--target=target] attribute-name=attribute-value[:attribute-name=attribute-value]*
The set-log-attributes subcommand sets logging attributes for one or more loggers. The attributes you can set correspond to the attributes that are available in the logging.properties file for the domain. Depending on the attributes you set, a server restart may be necessary.
This subcommand is supported in remote mode only.
Displays the help text for the subcommand.
The server domain, instance, or cluster for which logger attributes will be set. If this option is omitted, attributes are set for the default server.
Valid values are:
server_name - Default target is server. If no target is specified then log attributes are set for the server.
cluster_name - The name of a target cluster.
instance_name - The name of a target server instance.
The fully scoped name of the logging attribute. The list-log-attributes subcommand can be used to list the names of all currently defined attributes.
The value to apply to the specified attribute.
The attribute values that can be specified include the following. Refer to the online help and Chapter 7, Administering the Logging Service, in Oracle GlassFish Server 3.1 Administration Guide for complete explanations of each of these values.
Default is false.
Default is ${com.sun.aas.instanceRoot}/logs/server.log.
Default is 1.
Default is com.sun.enterprise.server.logging.UniformLogFormatter.
Default is false.
Default is 0.
Default is 0.
Default is 2000000.
Default is 0.
Default is false.
Default is java.util.logging.ConsoleHandler.
Default is com.sun.enterprise.server.logging.UniformLogFormatter.
Default is 1.
Default is java.util.logging.XMLFormatter.
Default is 50000.
Default is %h/java%u.log.
Default is warn.
Example 1 Setting a the Maximum of Log History Files to Maintain
This example sets to 8 the maximum number of log history files for the server as a whole.
asadmin> set-log-attributes --target=server \ com.sun.enterprise.server.logging.GFFileHandler.maxHistoryFiles=8 com.sun.enterprise.server.logging.GFFileHandler.maxHistoryFiles logging attribute set with value 8. These logging attributes are set for server. Command set-log-attributes executed successfully.
subcommand executed successfully
error in executing the subcommand
collect-log-files(1), list-log-attributes(1), list-log-levels(1), rotate-log(1), set-log-levels(1)
Chapter 7, Administering the Logging Service, in Oracle GlassFish Server 3.1 Administration Guide