console logging set time out code example
Example 1: logging.logger
import logging
logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.debug("some debugging...")
logger.error("some error...")
Example 2: logging request
Logging
In many cases it can be useful to print the
response and/or request details in order to
help you create the correct expectations and
send the correct requests. To do help you do thi
s you can use one of the predefined filters
supplied with REST Assured or you can use one of the shortcuts.
Request Logging
given().log().all(). ..
Log all request specification details
including parameters, headers and body
given().log().params(). ..
given().log().body(). ..
given().log().headers(). ..
given().log().cookies(). ..
given().log().method(). ..
given().log().path(). ..