GW2RegisterReportFile
GW2RegisterReportFile 함수는 엔지니어링 로그 파일이 저장될 파일 경로를 등록합니다. 이 API는 Glasswall Engine의 디버그 빌드에서만 보고서 파일을 생성합니다.
- C++
- C#
- Java
- Python
- JavaScript
개요
세션 session에 대해 GW2RegisterReportFile 함수는 엔지니어링 로그 파일이 저장될 파일의 이름을 등록합니다. 이름은 reportFilePathName이 가리키는 문자열입니다.
#include "glasswall.core2.api.h"
int GW2RegisterReportFile(Session session, const char *reportFilePathName);
반환값
정수 GW2_RetStatus enum 값을 반환합니다. 음수는 실패를 나타냅니다.
개요
public int RegisterReportFile(
int session,
string reportFilePathName)
반환값
정수 GW2_RetStatus enum 값을 반환합니다. 음수는 실패를 나타냅니다.
개요
import com.glasswall.core2javabridge.*;
public int GW2RegisterReportFile(int session, String reportFilePath) throws GlasswallException, NullPointerException
(Deprecated)
public int GW2RegisterReportFile(int session, byte[] reportFilePath) throws GlasswallException, NullPointerException
설명
The GW2RegisterReportFile function parameters have been updated to use String in place of byte[]. The original function has been deprecated.
반환값
GW2RegisterReportFile 함수는 GW2_RetStatus 열거형을 int로 변환하여 반환합니다. 오류가 발생한 경우 값은 음수가 됩니다. 0은 성공을 나타냅니다. 자세한 내용은 API Overview/Return types를 참조하세요.
NullPointerException 예외는 reportFilePath가 null이거나 비어 있는 경우 발생합니다.
GlasswallException 예외는 session이 유효하지 않거나, reportFilePath를 가져올 수 없거나, reportFilePath를 UTF-8로 변환할 수 없는 경우 발생합니다.
개요
엔지니어링 로그 파일이 저장될 파일의 이름을 등록합니다.
def register_report_file(self, session: int, output_file: str):
""" Register the report file path for the given session.
Args:
session (int): The session integer.
output_file (str): The file path of the report file.
Returns:
gw_return_object (glasswall.GwReturnObj): A GwReturnObj instance with the attributes 'session', 'output_file', 'status'.
"""
반환값
gw_return_object (glasswall.GwReturnObj): 'session', 'output_file', 'status' 속성을 가진 GwReturnObj 인스턴스입니다.
개요
이 함수는 엔지니어링 로그 파일이 저장될 파일의 이름을 등록합니다.
/**
* @param {number} session The ID of the session.
* @param {string} reportFilePathName The path of the file to be registered.
*/
GW2RegisterReportFile(session, reportFilePathName)
반환값
정수 GW2_RetStatus enum 값을 반환합니다. 음수는 실패를 나타냅니다.