# GraphLogAction(string, Action<object>)

> Initializes a new instance of the GraphLogAction class.

## Definition

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

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

```csharp
public GraphLogAction(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. Throws ArgumentNullException if null.
