set-log-file-format

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.

Eclipse GlassFish provides the ULF (UniformLogFormatter), ODL (Oracle Diagnostics Logging) and OneLine (OneLineFormatter) 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.

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, OneLine 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 Eclipse GlassFish Administration Guide