Page 1 of 1 1
Topic Options
#5594 - 2000-12-06 09:02 PM Event Logging
Anonymous
Unregistered


I know the LOGEVENT command only works on NT. Is there away of Logging an Event from Windows 9x to the NT event log?
Top
#5595 - 2000-12-07 07:08 AM Re: Event Logging
Anonymous
Unregistered


Yes it does only work on NT but I believe (Not tried it though) that you can send it to NT.

This is from the Documentation.

LogEvent()




Action: Logs an event in the Windows NT event log.
Syntax: LOGEVENT (type, ID, message, target, source)
Parameters: Type
- Number representing the type of the event. Possible values:0
SUCCESS

1
ERROR

2
WARNING

4
INFORMATION

8
AUDIT_SUCCESS

16
AUDIT_FAILURE

ID
- Number representing the event that occurred.

Message
- Message text of the event.

Target
- Optional parameter representing the UNC name of the system where the event should be logged. By default, all events are logged on the local system.

Source
- Optional parameter representing the source of the event. If this parameter is not specified, Kixtart will assume the KIX32.EXE as the source of the event.

Remarks: This function is only available on Windows NT clients.
Returns: 0 Event logged
Error code Function failed

Example: $RC = LogEvent( 0 , 1 , “Logon script completed successfully” , “”, “MyEvent” )
$RC = LogEvent( 0 , 1 , “Logon script completed successfully”)
$RC = LogEvent( 1 , 1 , “Logon script failed!” , @LSERVER )


The last example points the event to an NT server, you might try that one.

------------------
David Gray
IT Professional
Brisbane Australia
david.gray@suncorpmetway.com.au

Top
#5596 - 2000-12-07 10:10 PM Re: Event Logging
Anonymous
Unregistered


Thanks for the suggestion, I tried it and received error 120 "Error_Call_Not_Implemented". Still looking!
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (mole) and 1300 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.027 seconds in which 0.012 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org