# SeparateLog

### int SeparateLog(string strLogFile, short nStream, short nFunction)

EZGemPlus에서 기록하는 메시지 로그에서 특정 Stream Function의 메시지를 별도의 로그 파일로 남기게 설정하는 함수.

Trace Data(S6F1)나 Alarm(S5F1) 등의 로그를 별도의 파일로 남길 수 있습니다. 특정 Message의 로그가 많이 생성되어 가독성이 떨어질 경우 사용하면 편리합니다.

Parameters

<table data-header-hidden><thead><tr><th width="185" valign="top"></th><th width="95" 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">strLogFile</td><td valign="top">string</td><td valign="top">분리하여 남길 로그의 파일명</td></tr><tr><td valign="top">nStream</td><td valign="top">short</td><td valign="top">분리하고자 하는 대상메시지의 Stream 값</td></tr><tr><td valign="top">nFunction</td><td valign="top">short</td><td valign="top">분리하고자 하는 대상메시지의 Function 값</td></tr></tbody></table>

```csharp
m_gem.SeparateLog("Trace.LOG", 6, 1);    //예시) Trace시 별도의 로그로 분리합니다.
```

<figure><img src="/files/xmRiE2IiSqEu46YZdMMd" alt=""><figcaption></figcaption></figure>

* GEM로그와 별도로 Trace로그가 생성된걸 확인할 수 있습니다.


---

# 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/separatelog.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.
