Hitachi

Hitachi Application Server V10 Command Reference Guide (For Windows® Systems)


2.10.4 set-log-attributes

Sets the logging attributes for one or more loggers.

Synopsis

asadmin [asadmin-options] set-log-attributes [--help]
    [--target=target]
    attribute-name=attribute-value[:attribute-name=attribute-value]...

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The set-log-attributes subcommand of asadmin sets the logging attributes for one or more loggers. The set attributes correspond to the attributes that are available in the logging.properties file for the domain. Depending on the attributes set, a server restart may be necessary.

This subcommand is supported in remote mode only.

Precondition

Domain Administration Server (DAS) is running.

Files

The attributes you can set correspond to the attributes that are available in the logging.properties file for the domain.

Arguments

--help | -?

Displays the help text for the subcommand.

--target=target

Specifies the server domain, instance, or cluster for which the logger attributes will be set. If this option is omitted, attributes are set for the default server.

Type: String

The following values can be specified:

  • server

    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.

Default value: server

attribute-name

Specifies the fully scoped name of the logging attribute. For details about the specifiable attribute names, refer to List of parameters used with the set and get subcommands.

Type: String

Default value: N/A

attribute-value

Specifies the value to be applied to the specified attribute. For details about the specifiable attribute values, refer to List of parameters used with the set and get subcommands.

Type: String

Examples

In the following example, the switch of the message log of the server instance InstanceA size is set to 16777216.

asadmin set-log-attributes --target instanceA \
ServerInstance.message_log.rotation-size=16777216

Exit Status

Exit Status

Explanation

0

subcommand executed successfully.

1

error in executing the subcommand.