on 10-21-2014 6:23 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.