LOGNTEVENT        Write a message to the NT application event log

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands >

LOGNTEVENT        Write a message to the NT application event log

Syntax:

LOGNTEVENT

[ message ] [ options ]

Arguments:

[ message ]

Variable or string containing a message to write to the NT application event log.

Options:

/type=xx

Specifies the type of event being logged. If omitted, the default value if 1 (Error event) is used.

 

 

This script command writes a message to the NT application event log.

 

The /type option allows the event type to be specified. The permitted event types are listed below.

 

1 - Error event

2 - Warning event

3 - Information event

4 - Success Audit event

5 - Failure Audit event

 

Consider the following example.

 

LOGNTEVENT "This goes to the event log" /type=3

 

IMPORTANT

This command is not functional in scripts run in the security context of an account with insufficient privileges to write to the event log.

 

 

Related command(s): DISPLAY, LOGMSG, CONSOLEMSG, DASHBOARDMSG, MESSAGEBOX, PRINT, WRITEFILE, MAILTO

See also: Interactive Debugging