sybase.system.logger:Type=File

Description

The sybase.system.logger:Type=File MBean listens for JMX notifications, converts them to log messages, and writes them to a log file. You can also use this MBean to read and truncate the log file.

Attribute name

Description

Datatype

User

A user’s login name

String

Password

The user’s password

String

RMIAdaptor

The name of the RMI adaptor

String




addMonitoredMBean

Description

Adds an MBean for which to receive notifications.

Syntax

addMonitoredMBean(mbean_object javax.management.ObjectName)

Parameters

mbean_object

Name of the MBean object for which to receive notifications.

Returns

void




retrieveLog

Description

Retrieves the specified number of lines from the log file.

Syntax

retrieveLog(lines int)

Parameters

lines

The number of lines to retrieve from the log file.

Returns

java.lang.String[]




truncateLog

Description

Removes all but the specified number of lines from the log file.

Syntax

truncateLog(lines int)

Parameters

lines

The number of lines to leave in the log file.

Returns

void