# StateMachineLogAction

> An StateMachineLogAction.Action to associate with a message logged using the StateMachineLogger accepting an Object.

## Definition

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

```csharp
public class StateMachineLogAction
```

## Remarks

`StateMachineLogAction` serves as a way to link user executable actions to messages logged using the [StateMachineLogger](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinelogger.md) when handling [StateMachine.OnStateMachineChanged](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachine/onstatemachinechanged.md). The [Object](/engine/6000.7/script-reference/unityengine/object.md) parameter is the same as the context passed when logging messages with the [StateMachineLogger](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinelogger.md).

## Constructors

| Constructor                                                                                                                                                   | Description                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| [StateMachineLogAction(System.String,System.Action\{System.Object})](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinelogaction/ctor.md) | Initializes a new instance of the [StateMachineLogAction](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinelogaction.md) class. |

## Properties

| Property                                                                                                      | Description                    |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------ |
| [Action](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinelogaction/action.md)           | The action to execute.         |
| [Description](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinelogaction/description.md) | The description of the action. |
