startldtplog ('<log file name>', [0 or 1])
second argument is optional and 1 is default value
0 - Append ldtplog to an existing file
1 - Write ldtp log to a new file. If file already exist, then erase existing file content and start ldtp log
Start ldtp logging on the specified file
Log file will be created if log file is not present in any case. If second argument is 1, then existing file content will be erased. If second argument is 0, then new logs will be append to existing log.
- Return values:
-
| 1 | on Success and 0 on error |
If we want to overwrite existing log file or create new log file:
startldtplog ('evolution.xml', 1)
If we want to append existing log file or create new log file:
startldtplog ('evolution.xml', 0)
or
startldtplog ('evolution.xml')
- Author:
- Nagappan <nagappan@gmail.com>
Linux Desktop Testing Project