SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
trace log

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
trace log
Author Message
Rick Ireland



Joined: 30 Oct 2000
Posts: 44

Post trace log Reply with quote

I need to be able to automatically save the contents of the JAL log file after the execution of specific scripts. I can manually locate the logfile.txt file in the 24x7 program folder and rename and copy that to an archive location, but that seems somewhat bacdoor. Is there a better way? Thanks.

Fri Nov 02, 2001 10:12 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: trace log Reply with quote

Because "tracing" was until recently considered as a debugging option, there is no way to create disticnt trace files for every job. Although, in the notification event/script of a job you can put some generic code like
FileCopy "@V"24x7_home"\\script.log", "@V"24x7_home"\\@V"job_id".log"
which will copy script.log to [job_id].log file, this does not guarantee the correct log contents, because more multiple jobs can run simultaneously.

Tracing was available from very first version of 24x7 when it didn't have a script debugger, so it was the only way to debug script job executions.

The good news are that in coming soon version 3.2 it will have a built-in option to write job owned trace files, so each job can write to it's own trace file with an additional option to append or overwrite the job trace file on a new run.

: I need to be able to automatically save the contents of the JAL log file
: after the execution of specific scripts. I can manually locate the
: logfile.txt file in the 24x7 program folder and rename and copy that to an
: archive location, but that seems somewhat bacdoor. Is there a better way?
: Thanks.

Fri Nov 02, 2001 11:55 am View user's profile Send private message
Rick Ireland



Joined: 30 Oct 2000
Posts: 44

Post Re: trace log Reply with quote

Excellent. The filecopy will work fine until then. Thanks - again!

: Because "tracing" was until recently considered as a debugging
: option, there is no way to create disticnt trace files for every job.
: Although, in the notification event/script of a job you can put some
: generic code like
: FileCopy "@V"24x7_home"\\script.log",
: "@V"24x7_home"\\@V"job_id".log"
: which will copy script.log to [job_id].log file, this does not guarantee the
: correct log contents, because more multiple jobs can run simultaneously.

: Tracing was available from very first version of 24x7 when it didn't have a
: script debugger, so it was the only way to debug script job executions.

: The good news are that in coming soon version 3.2 it will have a built-in
: option to write job owned trace files, so each job can write to it's own
: trace file with an additional option to append or overwrite the job trace
: file on a new run.

Fri Nov 02, 2001 2:59 pm 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.