cancel
Showing results for 
Search instead for 
Did you mean: 

Windows event log

Former Member
0 Kudos

Hi,

I need to write a specific message into the windows event logger.

I am trying to use Message statement but I am unable to see any logs appearing in the event viewer.

Please help me find out what is not right with my code below

CREATE PROCEDURE message_text( )

BEGIN

MESSAGE 'Just a test message' TYPE INFO TO SYSTEM/EVENT LOG

END;

Both system and event does not seem to be writing in windows event log

Accepted Solutions (1)

Accepted Solutions (1)

jeff_albion
Employee
Employee
0 Kudos

Hi Sunil,

The following seems to work okay for myself on SQL Anywhere 16.0.2018 (SP 21):

   MESSAGE 'Hello, World!' TYPE INFO TO EVENT LOG;

This event then appears in the "Application" Windows System Event Log:

Were you checking the 'Application' event log for this message?

Regards,

Jeff Albion

SAP Active Global Support

Former Member
0 Kudos

Hi Jeff,

Thanks so much for the info.

But I am getting the log in a different place.

I think that is because I am running on a VM that is 32 bit.

But I also wanted to know if there are options to change the souce name, event ids and other stuffs

in the windows event log?

This is how my event viewer looks.

Answers (0)