Methods
(static) error(text) → {void}
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}
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}
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}
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