---
title: "GridJsLogger.SetLogFile"
url: "https://reference.aspose.com/cells/net/aspose.cells.gridjs/gridjslogger/setlogfile/"
product: "Aspose.Cells for .NET API Reference"
description: "GridJsLogger method. Sets the log file path and enables file output single file mode no rolling. Appends to existing file"
---

## SetLogFile(string) {#setlogfile}

Sets the log file path and enables file output (single file mode, no rolling). Appends to existing file.

```csharp
public static void SetLogFile(string filePath)
```

| Parameter | Type | Description |
| --- | --- | --- |
| filePath | String | The full path to the log file. |

### See Also

* class [GridJsLogger](../)
* namespace [Aspose.Cells.GridJs](../../../aspose.cells.gridjs/)
* assembly [Aspose.Cells.GridJs](../../../)

---

## SetLogFile(string, bool) {#setlogfile_1}

Sets the log file path and enables file output (single file mode, no rolling).

```csharp
public static void SetLogFile(string filePath, bool append)
```

| Parameter | Type | Description |
| --- | --- | --- |
| filePath | String | The full path to the log file. |
| append | Boolean | Whether to append to existing file. |

### See Also

* class [GridJsLogger](../)
* namespace [Aspose.Cells.GridJs](../../../aspose.cells.gridjs/)
* assembly [Aspose.Cells.GridJs](../../../)


