view_log() | Database Utilities | Teradata Python Package - 17.00 - view_log() - Teradata Package for Python

Teradata® Package for Python User Guide

Product
Teradata Package for Python
Release Number
17.00
Release Date
November 2021
Content Type
User Guide
Publication ID
B700-4006-070K
Language
English (United States)

Use the view_log() function to view script log on Vantage. Logs are pulled from 'scriptlog' file on database node.

Optional arguments:
  • log_type specifies the log to view.

    The permitted and default value is 'script', which indicates that the script log will be pulled from database node.

  • num_lines specifies the number of lines to be read and displayed from script log.

    The default value is 1000.

Example

view_log(log_type="script", num_lines=200)