> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/lan-turtle-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/lan-turtle-hub/payload-development/duckyscript-for-lan-turtle/log.md).

# LOG

The LOG set of commands allows for logging critical, error and info level messages to the service logs section of the management interface.

### Commands

* `LOG_CRITICAL` — Log a critical-level message for the management UI
* `LOG_ERROR` — Log an error-level message for the management UI
* `LOG_INFO` — Log an info-level message for the management UI
* `LOG_WARNING` — Log a warning-level message for the management UI

### Options

Each LOG command expects the following options:

```
[TYPE] [MESSAGE]
```

Within the management interface, the TYPE will be denoted in the Section column of the Service Logs screen and the MESSAGE will be listed in the Entry column.

### Example

```
LOG_INFO Example This is a test info log
```

<figure><img src="https://1990822252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F378Pamwi1kPq8YWam8pQ%2Fuploads%2F1Ce6uo0RcKPahgTEdMHI%2Fimage.png?alt=media&amp;token=4fe31db7-6290-4cc2-a903-0586c2ec725d" alt=""><figcaption><p>LOG events can be found from the management interface under Logging > Service Logs</p></figcaption></figure>
