SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Inconsistent Logging

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Inconsistent Logging
Author Message
Arthur Heezen



Joined: 09 Apr 2004
Posts: 5

Post Inconsistent Logging Reply with quote

I have found that I do not get as many informational
messages in the log as I would like. Thus, I tried
adding calls to LogAddMessageEx. Although I have a
lot of other code in VBScript, this snipet shows my
problem:

Sub Main()
Dim JalCommand
JalCommand = "LogAddMessageEx ""INFO""" & "," & """@V"job_id"""" & "," & """@V"job_name"""" & ", ""Generating semaphore file for step 02""" + vbCrLf
JALScript.Execute(JalCommand)
End Sub

The problem is that if I choose to "Run Now" (after
setting Asynchronous "On" so the thing doesn't hang)
the message gets added to the log. However, if I
schedule the job, nothing gets added. Any ideas?

Fri Apr 09, 2004 8:10 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: Inconsistent Logging Reply with quote

Run Now always runs jobs in foreground and synchronous, not matter how synchronous options is set for the job. Asynchronous run mode is used to run jobs in background and it should be used only for jobs that run or may run for hours. For all other jobs please use synchronous mode. Use multiple job queues to run jobs concurrently.

As for the JALScript.Execute try to schedule this job to run synchronous and see if that helps.

: I have found that I do not get as many informational
: messages in the log as I would like. Thus, I tried
: adding calls to LogAddMessageEx. Although I have a
: lot of other code in VBScript, this snipet shows my
: problem: Sub Main()
: Dim JalCommand
: JalCommand = "LogAddMessageEx ""INFO""" &
: "," &
: """@V"job_id"""" &
: "," &
: """@V"job_name"""" & ",
: ""Generating semaphore file for step 02""" +
: vbCrLf
: JALScript.Execute(JalCommand)
: End Sub

: The problem is that if I choose to "Run Now" (after
: setting Asynchronous "On" so the thing doesn't hang)
: the message gets added to the log. However, if I
: schedule the job, nothing gets added. Any ideas?

Fri Apr 09, 2004 12:10 pm View user's profile Send private message
Michael Tuszynski



Joined: 07 May 2004
Posts: 30

Post Re: Inconsistent Logging Reply with quote

I am running into the same difficulty in regards to the message logging.
Running the job in syncronous mode makes no differences, the log messages
do not show up when the job is scheduled. When run manually via 'Run Now',
the log messages show up in the job log.

: Run Now always runs jobs in foreground and synchronous, not matter how
: synchronous options is set for the job. Asynchronous run mode is used to
: run jobs in background and it should be used only for jobs that run or may
: run for hours. For all other jobs please use synchronous mode. Use
: multiple job queues to run jobs concurrently.

: As for the JALScript.Execute try to schedule this job to run synchronous and
: see if that helps.

Tue May 18, 2004 8:48 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: Inconsistent Logging Reply with quote

They are just not displayed in a real time as it is done with synchronous jobs. They are simply written to the log file in the background. To refresh the display use View/Refresh option. If you still cannot see these log records please check they are formatted properly. Open schedule.log file in the Notepad, uncheck "Wrap" option and make sure every log record takes just 1 line (e.g. no line breaks)

: I am running into the same difficulty in regards to the message logging.
: Running the job in syncronous mode makes no differences, the log messages
: do not show up when the job is scheduled. When run manually via 'Run Now',
: the log messages show up in the job log.

Tue May 18, 2004 9:52 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite 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.