 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
lucky_luuk
Joined: 18 Jan 2010 Posts: 12
|
|
Logging own messages in logfile |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
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 |
|
 |
lucky_luuk
Joined: 18 Jan 2010 Posts: 12
|
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
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 |
|
 |
lucky_luuk
Joined: 18 Jan 2010 Posts: 12
|
|
|
|
My problems/wishes are all solved.
Thank you for your support.
|
|
Tue Jun 03, 2014 4:55 am |
|
 |
|
|
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
|
|
|