Use the view_log() function to view log on Vantage. Logs are pulled from 'scriptlog' file or 'byom.log' on database node.
Optional arguments:
- log_type specifies the log to view.
- If set to 'script', script log will be pulled from database node;
- If set to 'byom', byom log is pulled from database node.
Default value is 'script'.
- num_lines specifies the number of lines to be read and displayed from log.
The default value is 1000.
Example 1: View script log
view_log(log_type="script", num_lines=200)
Example 2: View byom log
view_log(log_type="byom", num_lines=200)