# Log to console

The Log to console action node prints a custom message to the [Logs panel](https://docs.appfarm.io/reference/appfarm-client/developer-tools-for-apps#logs) of the [Developer tools](https://docs.appfarm.io/reference/appfarm-client/developer-tools-for-apps).

## Usage

This action node is often used for debugging purposes in order to print a value from a data source or function.

If you want to log the contents of an object or data source to the console, you should use the function editor to turn it into a string. For example, `return JSON.stringify(variableName);`

{% hint style="info" %}
**Example**

A Log to console example is available in our [Showroom](https://showroom.appfarm.app/action-nodes/log-to-console). You can view the demo, as well as access the setup in Appfarm Create. Don't have access? [Register](https://showroom.appfarm.app/sign-up).
{% endhint %}

## Properties

<table><thead><tr><th width="163">Property</th><th>Description</th></tr></thead><tbody><tr><td><strong>Text</strong></td><td><p>The message to print to the console. A message can be formed from:</p><ul><li>a static text string</li><li>a property value from a data binding</li><li>the result of a conditional expression</li><li>the return value of a function</li><li>other values such as the current date and time</li></ul></td></tr></tbody></table>
