/
LOG {-INFO, -WARNING, -ERROR, -DEBUG}
LOG {-INFO, -WARNING, -ERROR, -DEBUG}
The LOG directive logs a message of the severity specified by the script. Four levels of severity can be stated, in escalating order: INFO, WARNING, ERROR and DEBUG.
LOG can be used in Action-Command attributes and Trigger-Command attributes. If you try to use LOG in other attributes, it will generate a script Error and appear in red in the Job Details Viewer's Process Log page.
Log messages are written to the Custom Log tab in the Job Details Viewer window.
Example
Action-Commands: { $Vendor eq "Cisco" and $type eq "Router" }
ARCHIVE ($ipaddress.txt): show int summ
LOG-INFO: Router's interface list has been written to file
Related content
PRINT
More like this
ARCHIVE
ARCHIVE
More like this
Using the Job Viewer
Using the Job Viewer
More like this
Using the Job Viewer
Using the Job Viewer
More like this
Well-Known Variables
Well-Known Variables
More like this