SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Logging own messages in logfile

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
Logging own messages in logfile
Author Message
lucky_luuk



Joined: 18 Jan 2010
Posts: 12

Post Logging own messages in logfile Reply with quote
I want to see my own log message in the logfile and that was possible until the new version.
After upgrading from version 3.6.2 to version 5.2 the LogAddMessageEx dosn't work the same way as before.

In our jobs we set the "Do not log execution progress and errors for this job" flag, because we don't want to see "Job started" and "Job ended/completed".
We only want to see messages from LogAddMessageEx as it was in version 3.6.2

What can i do to get only these messages listed in the logfile ?
Mon May 19, 2014 5:44 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
I believe you meant to post this in a different product support forum, in 24x7.

In v5. JAL statement LogAddMessageEx also writes to scheduler.log file, just asynchronously. JAL jobs in v5 always run as separate processes, they no longer have access to the internal engine. If you run them from the GUI, you won't see messages written by LogAddMessageEx immediately, but you can see them if you open scheduler.log file in notepad, or if you restart the editor or run a job that actually logs to the file using default methods.

In v5. you can also use standard input/output functions, for example, ConsoleWrite to print messages to the standard output. If Capture Output option is enabled in job properties, you can see your messages, as well as other console messages in the job's "output capture" files.
Wed May 21, 2014 8:27 am View user's profile Send private message
lucky_luuk



Joined: 18 Jan 2010
Posts: 12

Post Reply with quote
You are right, i posted it in the wrong forum.

I looked in the scheduler.log and found the messages written with AddMeesageEx.
It's a pity that we can nolonger see these messages directly with the LogViewer.

Capture Output is not suitable for our needs.

Thank you for the information.
Wed May 21, 2014 10:14 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
You can, just not in a real-time.

As a helper, create a dummy batch job to run every 5 minutes and do nothing, but don't disable logging for that job. It will force the GUI to refresh.
Wed May 21, 2014 10:29 am View user's profile Send private message
lucky_luuk



Joined: 18 Jan 2010
Posts: 12

Post Reply with quote
My problems/wishes are all solved.

Thank you for your support.
Tue Jun 03, 2014 4:55 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.