set-log-file-format

DRAFT


Previous Next Contents

set-log-file-format

sets the formatter to be used for the server log file

Synopsis

asadmin [asadmin-options] set-log-file-format [--help]
[--target target]
[formatter]

Description

The set-log-file-format subcommand sets the formatter to be used for the server log file for the specified target.

\{product---name} provides the ULF (UniformLogFormatter) and ODL (Oracle Diagnostics Logging) formatters. A custom formatter can also be used by specifying the fully qualified name of a class that extends the java.util.logging.Formatter class.

The custom formatter class can be packaged in a JAR file and placed in domain`/lib/ext`, or implemented as an HK2 service and the JAR containing the formatter implementation installed in glassfish/modules.

This subcommand is supported in remote mode only.

Options

asadmin-options

Options for the asadmin utility. For information about these options, see the asadmin(1M) help page.

--help
-?

Displays the help text for the subcommand.

--target

Specifies the target for which the formatter is being set. Specify the name of the server domain, instance, or cluster. If this option is omitted, logger attributes are set for the default server.

Operands

formatter

Specifies the fomatter to be used for the server log file. Valid values are ULF, ODL, or the fully qualified name of the custom formatter class to be used to render the log files. The default value is ODL.

Examples

Example 1   Setting the Log File Format

This example sets the server log file format to ULF for server1.

asadmin> set-log-file-format --target server1 ULF
Command set-log-file-format executed successfully.

Exit Status

0

subcommand executed successfully

1

error in executing the subcommand

See Also

"Administering the Logging Service" in GlassFish Server Open Source Edition Administration Guide


Previous Next Contents
Eclipse Foundation Logo  Copyright © 2019, Oracle and/or its affiliates. All rights reserved.

DRAFT