Microsoft SDK for Java

EventLog Class Constructors

The EventLog Class contains the following constructors:

EventLog(String source)
EventLog(String server, String source)

EventLog(String source)

Creates an EventLog object given the name of the source. This constructor calls the Win32 RegisterEventSource API.

Syntax

public EventLog(String source);

Parameters

source The name of the source referenced by the EventLog object. The source name must be a subkey of a logfile entry under the EventLog key in the registry. Its value can be null.

EventLog(String server, String source)

Creates an EventLog object given the name of the source and the name of the server. This constructor calls the Win32 RegisterEventSource API.

Syntax

public EventLog(String server, String source);

Parameters

server The Universal Naming Convention (UNC) name of the server that this operation is to be performed on.
source The name of the source referenced by the EventLog object. The source name must be a subkey of a logfile entry under the Eventlog key in the registry. Its value can be null.

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