Sun Java System Portal Server 7 Command-Line Reference

psadmin reset-logger

Description

Resets the log level and log file to that of the root logger.

Syntax

Long Format

psadmin reset-logger --adminuser uid --passwordfile password-filename --component component-type [--portal portal-ID] [--instance portal-instance-name] [--searchserver search-server-ID] [--sra-instance sra-instance-name]--name logger-name [--output output-filename] [--verbose]

Short Format

psadmin reset-logger -u uid -f password-filename -m component-type [-p portal-ID] [--instance portal-instance-name] [-s search-server] [-i instance-name] [-O logger-name][ -o output-filename] [-v]

Options

The following options are required:

[--adminuser | -u] uid

Specifies the administrator's distinguished name (dn) or user ID.

[--passwordfile | -f] password-filename

Specifies the administrator's password in the password file.

[--logger | -O] logger-name

Specifies the name of the logger.

The following options are not required:

[--portal | -p] portal-ID

Specifies the portal ID. This is required only if component-type is portal.

[--instance | -i] portal-instance-name

Specifies the portal server instance. This is required only if component-type is portal.

[[--searchserver | -s] search-server-ID

Specifies the search server ID. This is required only if the --component-type option value is search.

[--sra-instance] sra-instance-name

Specifies the Portal Server Secure Remote Access instance. This is required only if the --component-type option value is either gateway or nlproxy or rwproxy.

[--verbose | -v]

Lists output filenames verbosely.


Example 2–6 reset-logger

Obtain the logger-name using the list-logger subcommand.

./psadmin reset-logger -u amadmin -f passwordfile -p myPortal -i myInstance -O debug.com.sun.portal.desktop

The logs no longer go to the logger's log file, instead they go to the parent's log file with the same level as the parent. The log related to debug.com.sun.portal.desktop is only logged into the file associated with debug.com.sun.portal )

outputs:


Successfully completed!