09-09-2014
Hi,
As I said, I have a single log file which all my scripts log to. So I don't have this issue, perhaps rather than write a script that would have to be continually edited - you may want to look at implementing a more considered methodology.
Regards
Dave
8 More Discussions You Might Find Interesting
1. Programming
Hi,
I have a hard time to think of writing a tool or call its an API utility in order to migrate the data from an old-system (DB2) to a new-system (Oracle). I never do this before. There are many records in the old database DB2. I can't just map each of them to the new database by manually. ... (1 Reply)
Discussion started by: tux-denle
1 Replies
2. UNIX for Dummies Questions & Answers
Is there a UNIX check hard disk utility similar to the DOS utility chkdsk ?
If there is one can it fix hard disk problems like checkdsk /f can with a DOS system?
Where can I find these commands? (1 Reply)
Discussion started by: hatcity
1 Replies
3. Shell Programming and Scripting
how to check whether logs are updating or not in unix
is there any built in command or function ? (1 Reply)
Discussion started by: mail2sant
1 Replies
4. UNIX for Dummies Questions & Answers
hi all
which is best online tool to analyze the vmstat logs to measure the cpu performance (2 Replies)
Discussion started by: din_annauniv
2 Replies
5. Solaris
Hi all
i want to know what are the logs we need to check when the server is down and how to resolve to make server UP? please help me with this (8 Replies)
Discussion started by: vkav
8 Replies
6. Shell Programming and Scripting
I have 5 log files under different directores . say for eg abc under /home/dir1 , xyz under home/dir2 . is there a script that i can run from say /home that searchers all these files for string or combination of strings and write to a file
eg search file by timestamp|keyword
o/p in a file (6 Replies)
Discussion started by: Nevergivup
6 Replies
7. Shell Programming and Scripting
Hello ,
On a couple of system I have to check that systems have the same configuration. This system are part of manual cluster but when application are going to switch from one side to another side I would like to be sure I am not going to experience incidents. It is why I wonder if on the web... (2 Replies)
Discussion started by: xavier38450
2 Replies
8. Shell Programming and Scripting
I have nearly 25+ tail commands which we need to verify the logs if there is any errors on current or previous date with time. I need this to be automate and send email to me with details. Please help me on this. (5 Replies)
Discussion started by: Nasir HussainSM
5 Replies
LEARN ABOUT PHP
xslt_set_log
XSLT_SET_LOG(3) 1 XSLT_SET_LOG(3)
xslt_set_log - Set the log file to write log messages to
SYNOPSIS
void xslt_set_log (resource $xh, [mixed $log])
DESCRIPTION
This function allows you to set the file in which you want XSLT log messages to, XSLT log messages are different than error messages, in
that log messages are not actually error messages but rather messages related to the state of the XSLT processor. They are useful for
debugging XSLT, when something goes wrong.
By default logging is disabled, in order to enable logging you must first call xslt_set_log(3) with a boolean parameter which enables log-
ging, then if you want to set the log file to debug to, you must then pass it a string containing the filename.
PARAMETERS
o $
xh -The XSLT processor link identifier, created with xslt_create(3).
o $log
- This parameter is either a boolean value which toggles logging on and off, or a string containing the logfile in which log
errors too.
RETURN VALUES
No value is returned.
NOTES
Note
Please note that file:// is needed in front of the path when using Windows.
EXAMPLES
Example #1
Using the XSLT Logging features
<?php
$xh = xslt_create();
xslt_set_log($xh, true);
xslt_set_log($xh, getcwd() . '/myfile.log');
$result = xslt_process($xh, 'dog.xml', 'pets.xsl');
echo $result;
xslt_free($xh);
?>
PHP Documentation Group XSLT_SET_LOG(3)