# GraphLogAction

> An GraphLogAction.Action to associate with a message logged using the GraphLogger accepting an Object.

## Definition

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

```csharp
public class GraphLogAction
```

## Remarks

`GraphLogAction` serves as a way to link user executable actions to messages logged using the [GraphLogger](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphlogger.md) when handling [Graph.OnGraphChanged](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graph/ongraphchanged.md). The [Object](/engine/6000.6/script-reference/unityengine/object.md) parameter is the same as the context passed when logging messages with the [GraphLogger](/engine/6000.6/script-reference/unity/graphtoolkit/editor/graphlogger.md).

## Constructors

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

## Properties

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