Microsoft SDK for Java

reportEvent

The reportEvent method of the EventLog Class contains the following signatures:

reportEvent(short type, short cat, int id, String[] msg,byte[] data)
reportEvent(short type, short cat, int id, String msg, byte[] data)
reportEvent(short type, short cat, int id, String[] msgs)
reportEvent(short type, short cat, int id, String msg)
reportEvent(short type, short cat, int id)

reportEvent(short type, short cat, int id, String[] msg,byte[] data)

Writes an entry at the end of the event log, providing associated strings and binary data.

Syntax

public void reportEvent(short type, short cat, int id, String[] msg, byte[] data);

Parameters

type The type of event being logged. The parameter can be one of the following types:

ERROR
WARNING
INFORMATION
AUDIT_SUCCESS
AUDIT_FAILURE

cat The event category. This is source-specific information; the category can have any value.
id The event identifier, which specifies the message that goes with this event as an entry in the message file associated with the event source.
msgs An array of strings that are merged into the message before the message is displayed to the user.
data The binary data associated with the report.

reportEvent(short type, short cat, int id, String msg, byte[] data)

Writes an entry at the end of the event log, providing an associated string and binary data.

Syntax

public void reportEvent (short type, short cat, int id, String msg, byte[] data);

Parameters

type The type of event being logged. The parameter can be one of the following types:

ERROR
WARNING
INFORMATION
AUDIT_SUCCESS
AUDIT_FAILURE

cat The event category. This is source-specific information; the category can have any value.
id The event identifier, specifies the message that goes with this event as an entry in the message file associated with the event source.
msg A string that is merged into the message before the message is displayed to the user.
data The binary data associated with the report.

reportEvent(short type, short cat, int id, String[] msgs)

Writes an entry at the end of the event log, providing associated strings.

Syntax

public void reportEvent(short type, short cat, int id, String[] msgs);

Parameters

type The type of event being logged. The parameter can be one of the following types:

ERROR
WARNING
INFORMATION
AUDIT_SUCCESS
AUDIT_FAILURE

cat The event category. This is source-specific information; the category can have any value.
id The event identifier, which specifies the message that goes with this event as an entry in the message file associated with the event source.
msgs An array of strings that are merged into the message before the message is displayed to the user.

reportEvent(short type, short cat, int id, String msg)

Writes an entry at the end of the event log, providing an associated string.

Syntax

public void reportEvent(short type, short cat, int id, String msg);

Parameters

type The type of event being logged. The parameter can be one of the following types:

ERROR
WARNING
INFORMATION
AUDIT_SUCCESS
AUDIT_FAILURE

cat The event category. This is source-specific information; the category can have any value.
id The event identifier, which specifies the message that goes with this event as an entry in the message file associated with the event source.
msgs A string that is merged into the message before the message is displayed to the user.

reportEvent(short type, short cat, int id);

Writes an entry at the end of the event log.

Syntax

public void reportEvent(short type, short cat, int id);

Parameters

type The type of event being logged. The parameter can be one of the following types:

ERROR
WARNING
INFORMATION
AUDIT_SUCCESS
AUDIT_FAILURE

cat The event category. This is source-specific information; the category can have any value.
id The event identifier, which specifies the message that goes with this event as an entry in the message file associated with the event source.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.