---
title: "LOG {-INFO, -WARNING, -ERROR, -DEBUG}"
canonical: "https://docs.infoblox.com/space/NCSG/23199974/LOG%20%7B-INFO%2C%20-WARNING%2C%20-ERROR%2C%20-DEBUG%7D"
format: markdown
---
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.

![image](media://3eacd7c4-20b5-4f44-89eb-53fec880d523)

**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`