## Write(string) {#write_1}

Writes the specified message to appenders.

```csharp
public void Write(string message)
```

| Parameter | Type | Description |
| --- | --- | --- |
| message | String | The message to write. |

### See Also

* class [Logger](../)
* namespace [Aspose.Email.Tools.Logging](../../logger/)
* assembly [Aspose.Email](../../../)

---

## Write(string, Exception) {#write_2}

Writes the specified message and exception to appenders.

```csharp
public void Write(string message, Exception exception)
```

| Parameter | Type | Description |
| --- | --- | --- |
| message | String | The message to write. |
| exception | Exception | The exception to write. |

### See Also

* class [Logger](../)
* namespace [Aspose.Email.Tools.Logging](../../logger/)
* assembly [Aspose.Email](../../../)

---

## Write(string, Exception, LogLevel) {#write_3}

Writes the specified message and exception to appenders.

```csharp
public void Write(string message, Exception ex, LogLevel level)
```

| Parameter | Type | Description |
| --- | --- | --- |
| message | String | The message to write. |
| ex | Exception | The exception to write. |
| level | LogLevel | The log level. |

### See Also

* class [LogLevel](../../loglevel/)
* class [Logger](../)
* namespace [Aspose.Email.Tools.Logging](../../logger/)
* assembly [Aspose.Email](../../../)

---

## Write(object) {#write}

Writes the specified message to appenders.

```csharp
public void Write(object message)
```

| Parameter | Type | Description |
| --- | --- | --- |
| message | Object | The message to write. |

### See Also

* class [Logger](../)
* namespace [Aspose.Email.Tools.Logging](../../logger/)
* assembly [Aspose.Email](../../../)


