Startlog
From LDTP
| Table of contents |
Syntax
startlog ('<log file name>', [0 or 1])
second arugment is optional and 0 is default value
0 - Append log to an existing file
1 - Write log to a new file. If file already exist, then erase existing file content and start log
Description
Start logging on the specified file
Implementation
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.
It returns 1 on Success and 0 on error
Example
If we want to overwrite existing log file or create new log file:
startlog ('evolution.xml', 1)
If we want to append existing log file or create new log file:
startlog ('evolution.xml', 0)
or
startlog ('evolution.xml')

