writeLogEvent

.OS. writeLogEvent

Source:

The wrapper object for functions to handle Windows Event Log.

Methods

(static) error(text) → {void}

Source:

Logs the error event in Windows Event Log.

Example
Wsh.OS.writeLogEvent.error('Error Log');
Parameters:
Name Type Description
text string

The message string.

Returns:
Type
void

(static) info(text) → {void}

Source:

Logs the Information event in Windows Event Log.

Example
Wsh.OS.writeLogEvent.info('Information Log');
Parameters:
Name Type Description
text string

The message string.

Returns:
Type
void

(static) success(text) → {void}

Source:

Logs the success event in Windows Event Log.

Example
Wsh.OS.writeLogEvent.success('Success Log');
Parameters:
Name Type Description
text string

The message string.

Returns:
Type
void

(static) warn(text) → {void}

Source:

Logs the warn event in Windows Event Log.

Example
Wsh.OS.writeLogEvent.success('Warn Log');
Parameters:
Name Type Description
text string

The message string.

Returns:
Type
void