Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Viewing Log Messages
Wed, Sep 29 2010 7:06 AMPermanent Link

Richard Harding

Wise Nutrition Coaching

I have created a procedure to write log messages.

CREATE PROCEDURE "SetLogMessage" (IN "Msg" VARCHAR(255) COLLATE ANSI_CI)
BEGIN  
  SET LOG MESSAGE TO Msg;
END

How do I view the log messages?

Richard Harding
Wed, Sep 29 2010 8:01 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Richard


The only way I know of is to use EDBManager. Open the session and there's an option to view the log.

Roy Lambert [Team Elevate]
Wed, Sep 29 2010 8:55 AMPermanent Link

Richard Harding

Wise Nutrition Coaching

>>The only way I know of is to use EDBManager. Open the session and there's an option to view the log.

Roy,

I did look there.  If I execute the procedure from an application, there is a log message with a notification for the Login to the session but no other message.

Richard Harding
Wed, Sep 29 2010 10:05 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Richard


Reading the OLH

Use this statement to create a new log message that can be retrieved and viewed by the application that is executing the current routine. The message can be any text that you wish.

So you should be able to view it. Unfortunately no hint is given as to how, but a bit of inspired guesswork - look at the TEDBScript component. There is an OnLogMessage event with parameters (Sender:TObject;  const LogMessage: string) and that's how you'll get it.

Roy Lambert
Wed, Sep 29 2010 4:56 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

Thank you Roy . . .

>>So you should be able to view it. Unfortunately no hint is given as to how, but a bit of inspired guesswork - look at the TEDBScript component. There is an OnLogMessage event with parameters (Sender:TObject;  const LogMessage: string) and that's how you'll get it.

Richard Harding
Image