LDTP  3.5.0
 All Pages
log

Syntax

log('<Message to be logged>', logging.<TYPE>)

where TYPE can be any of these

error

message will be logged on error

critical

message will be logged on critical

Description

Logs the message in the log.xml with the tag which can be viewed after the execution of scripts

ImplementationDetails

The required message will be logged into the log.xml on execution of scripts

Return values
1on success and 0 on error

Example

log('Logging some error string', logging.ERROR)

log('Logging some critical string', logging.CRITICAL)

Author
Nagashree mnaga.nosp@m.shre.nosp@m.e@nov.nosp@m.ell..nosp@m.com


Linux Desktop Testing Project