# Utils.SafeExecute(Action, ILogger?, string?)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.utils/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.utils/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Utils/Utils.cs#L174-L181)

```csharp
public static void SafeExecute(Action action, ILogger? logger = null, string? caller = null)
```

### Parameters

- `action` (`Action`)
- `logger` (`ILogger?`)
- `caller` (`string?`)
