> For the complete documentation index, see [llms.txt](https://nviasoft.gitbook.io/nviasoft-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nviasoft.gitbook.io/nviasoft-docs/api-reference/item-parsing/getcurlogfile.md).

# GetCurLogFile

### int GetCurLogFile(ref string sCurLogFile)

현재 시스템에서 생성 및 기록 중인 로그 파일의 전체 경로를 조회합니다. 실시간으로 로그를 모니터링하거나, 특정 이벤트 발생 시 로그 파일을 복사/전송하는 기능을 구현할 때 유용합니다.

Parameters

<table data-header-hidden><thead><tr><th width="224"></th><th width="95"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>sCurLogFile</td><td>ref string</td><td>(Output) 현재 사용 중인 로그 파일 경로가 담길 문자열 변수</td></tr></tbody></table>

```csharp
void CheckLoggingStatus()
{
    string logFilePath = "";
    int result = m_gem.GetCurLogFile(ref logFilePath);

    if (result >= 0)
    {
        Console.WriteLine($"현재 로그 기록 파일: {logFilePath}");
        // 필요 시 해당 파일을 읽거나 경로를 UI에 표시
    }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://nviasoft.gitbook.io/nviasoft-docs/api-reference/item-parsing/getcurlogfile.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.
