LDTP  3.5.0
 All Pages
setloglevel

Syntax

setloglevel(<log level>)

Options

List of log levels are available here - http://docs.python.org/lib/module-logging.html

Description

Set the log level, which will be used in client side logging. Default log level set is logging.WARNING

ImplementationDetails

Implemented based on python logging formats

Return values
Returns1 on success, 0 on failure

Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtp/__init__.py

Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtp/__init__.py

Windows: https://github.com/ldtp/cobra/blob/master/CobraWinLDTP/ldtp/__init__.py

Example

setloglevel(logging.WARNING)

Author
Nagappan Alagappan nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project