## Format(LogEntry) {#format}

Formats a log entry and return a string to be outputted.

```csharp
public virtual string Format(LogEntry entry)
```

| Parameter | Type | Description |
| --- | --- | --- |
| entry | LogEntry | Log entry to format. |

### Return Value

String representing the log entry.

### See Also

* class [LogEntry](../../logentry/)
* class [Formatter](../)
* namespace [Aspose.Email.Tools.Logging](../../formatter/)
* assembly [Aspose.Email](../../../)

---

## Format(DateTime) {#format_1}

Formats a datetime and return a string to be outputted.

```csharp
public virtual string Format(DateTime datatime)
```

| Parameter | Type | Description |
| --- | --- | --- |
| datatime | DateTime | The datetime value for formatting to string |

### See Also

* class [Formatter](../)
* namespace [Aspose.Email.Tools.Logging](../../formatter/)
* assembly [Aspose.Email](../../../)


