Page 1 of 1

Storing log files

Posted: Tue Nov 16, 2004 11:58 am
by yaminids
Hello there,

I have 5 jobs in my project and I want to store all the log files generated while executing the jobs. To be precise, when I execute a job 'A' for example, I want to store the log file generated for this job in a directory. Similarly, I want to store all the log files generated when I execute other jobs in the same directory.
Can anyone suggest me any methods to accomplish this please.

Thanx in advance
-Yamini

Posted: Tue Nov 16, 2004 3:24 pm
by roy
Hi,
What do you want to acomplish?
Do you need text/ascii files read able in an editor?
Will a report summary of job run be good for you?

Storing log files

Posted: Tue Nov 16, 2004 5:12 pm
by yaminids
Hi Roy,

First of all thank you for your reply.
Can you explain to me how to accomplish the two tasks you listed: Text/Ascii files and Report summary.

I appreciate your time.
-Yamini

Posted: Thu Nov 18, 2004 12:42 pm
by roy
Hi,
There is the DSGetLogSummary() or (Since release 7) command line dsjob - report option to get a report on a job.
so you'll need to check if it has what you need.

there are several posts in this forum (use search) of using the routines to get log entries using basic code and dumping them to files ( such as DSGetNewestLogId() & DSGetLogEntry() ) which are documented in the help.

the actual log files are hash files, hence of no real use being backed up to view then in a conventional editor.

IHTH,

Re: Storing log files

Posted: Thu Nov 18, 2004 1:16 pm
by vcannadevula
yaminids wrote:Hello there,

I have 5 jobs in my project and I want to store all the log files generated while executing the jobs. To be precise, when I execute a job 'A' for example, I want to store the log file generated for this job in a directory. Similarly, I want to store all the log files generated when I execute other jobs in the same directory.
Can anyone suggest me any methods to accomplish this please.

Thanx in advance
-Yamini

You can Import the Logs into a Text file from the Director using the Print option Under Projects.........Select the "Print to File" option. It will write the logs in to a text file. You can write single JOb logs or the Project logs into a text file.

Thank You
VJ