Teradata Package for Python Function Reference - 17.00 - view_log - Teradata Package for Python

Teradata® Package for Python Function Reference

Product
Teradata Package for Python
Release Number
17.00
Published
November 2021
Language
English (United States)
Last Update
2021-11-19
teradataml.dbutils.dbutils.view_log = view_log(log_type='script', num_lines=1000)
DESCRIPTION:
    Function for viewing script log on Vantage. Logs are pulled from 'scriptlog'
    file on database node.
 
PARAMETERS:
    log_type:
        Optional Argument.
        Specifies which log to view.
        If set to 'script', script log is pulled from database node.
        Permitted Values: 'script'
        Default Value: 'script'
        Types: str
 
    num_lines:
        Optional Argument.
        Specifies the number of lines to be read and displayed from script log.
        Default Value: 1000
        Types: int
 
RETURNS:
    teradataml dataframe.
 
RAISES:
    TeradataMLException.
 
EXAMPLES:
    # View script log.
    >>> view_log(log_type="script", num_lines=200)