# SetLogDelTime

### int SetLogDelTime(int nDelTime)

EZGemPlus에 로그 정리시간을 변경하는 함수.

6자리 숫자로 구성되며 hhmmss 로 인식합니다. 기본 00:00:00(날짜 변경)에 정리를 시도합니다. 이때 제어프로그램도 정리를 시도할 경우 병목현상이 발생할 수 있어 이를 방지하기 위하여 사용자가 설정한 시간에 로그파일을 정리할 수 있도록 해줍니다.

Parameters

<table data-header-hidden><thead><tr><th width="139" valign="top"></th><th width="102" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Name</td><td valign="top">Type</td><td valign="top">Description</td></tr><tr><td valign="top">nDelTime</td><td valign="top">int</td><td valign="top">설정(변경)하고자 하는 시간, 변경 전 Default 시간 000000(00:00:00)</td></tr></tbody></table>

```csharp
// 시스템 부하가 적은 새벽 시간으로 로그 정리 시점 변경 예제
public void ConfigureLogCleanupTime()
{
    // 1. 정리 시각 설정 (HHMMSS 형식)
    // 예: 새벽 3시 30분 00초 -> 033000
    int nCleanupTime = 033000;

    // 2. SetLogDelTime 호출
    int nResult = m_gem.SetLogDelTime(nCleanupTime);

    // 3. 결과 확인
    if (nResult >= 0)
    {
        Console.WriteLine($"로그 정리 시각이 {nCleanupTime:D6}으로 변경되었습니다.");
    }
    else
    {
        // 실패 시 에러 코드 확인
        Console.WriteLine($"시각 설정 실패. 에러 코드: {nResult}");
    }
}
```


---

# 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/undefined-2/setlogdeltime.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.
