> For the complete documentation index, see [llms.txt](https://docs.hyperdbg.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperdbg.org/commands/meta-commands/.logopen.md).

# .logopen (open log file)

### Command

> .logopen

### Syntax

> .logopen \[FilePath (string)]

### Description

Sends a copy of the events and commands from the command window to a new log file.

### Parameters

**\[FilePath (string)]**

The file path to save the log.

### Examples

The following command creates a log file at `c:\users\sina\desktop\log.txt`.

```
HyperDbg> .logopen c:\users\sina\desktop\log.txt
```

### IOCTL

None

### Remarks

You can close the log file using the [.logclose](https://docs.hyperdbg.org/commands/meta-commands/.logclose) command.

### Requirements

None

### Related

[.logclose (close log file)](https://docs.hyperdbg.org/commands/meta-commands/.logclose)
