# StateMachineLogAction(string, Action<object>)

> Initializes a new instance of the StateMachineLogAction class.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

## StateMachineLogAction(string, Action\<Object>)

```csharp
public StateMachineLogAction(string description, Action<object> action)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The description of the action.**** (\[Action\<Object>]\(https\://learn.microsoft.com/dotnet/api/system.action)): The action to execute.

### Remarks

Throws ArgumentNullException when `action` is null.
