# .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)
