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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hyperdbg.org/commands/meta-commands/.logopen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
