# Sandbox.Diagnostics.Logger.Error

## Overload 1

```csharp
void Error(System.FormattableString message)
```

### Parameters

- `message` (`System.FormattableString`)

## Overload 2

```csharp
void Error(System.Exception exception, System.FormattableString message)
```

### Parameters

- `exception` (`System.Exception`)
- `message` (`System.FormattableString`)

## Overload 3

```csharp
void Error(System.Exception exception, object message)
```

Log an exception as an error, with given message override.

### Parameters

- `exception` (`System.Exception`): The exception to log.
- `message` (`object`): The text to override exceptions' message with in the log.

## Overload 4

```csharp
void Error(System.Exception exception)
```

Log an exception as an error.

### Parameters

- `exception` (`System.Exception`): The exception to log.

## Overload 5

```csharp
void Error(object message)
```

Log an error. This is the most severe log level.

### Parameters

- `message` (`object`): The error to log.

Declared in [Sandbox.Diagnostics.Logger](/api/Sandbox.Diagnostics.Logger).
Assembly: `Sandbox.System`.
