데이터 익스텐션은 1 컬럼당 최대 4000 자까지 저장이 가능하오나,
이 방법으로는 디버그 로그가 4000 자를 초과하는 경우에도 에러 메시지를 4000 자씩 나누어 여러 개의 레코드에 저장할 수 있습니다.
1. Contact Builder 또는 Email Studio에서 디버그 로그를 저장하기 위한 데이터 익스텐션을 작성합니다.
a. Name: 선택 사항 (본 안내에서는 DEBUG_LOG 사용)
b. 유지 설정 : 데이터의 비대화를 방지하기 위해 ON 설정을 권장합니다.
c. 컬럼:
i. Name: date, Data Type:text, Length:30
ii. Name: message, Data Type:text, Length:4000
iii. Name: symbol, Data Type:text, Length:100
2. 작성한 데이터 익스텐션을 열어 External Key 값을 보관합니다.
3. SSJS 스크립트를 작성하고 Publish 합니다.
---
<script runat="server">
Platform.Load("Core","1");
var logDe = DataExtension.Init("2에서 보관한 External Key 값");
var msg = "";
var part = "";
var logMessage = "";
try{
//고객님께서 작성하실 처리
} catch (error) {
msg = error;
while (msg.length > 0){
part = msg.substring(0, 4000);
logMessage = { date:Now(), message:part, symbol: "식별하기 쉬운 표시"};
logDe.Rows.Add(logMessage);
msg = msg.replace(part,"");
}
}
</script>
---
4. DEBUG_LOG 데이터 익스텐션을 참조하여 오류를 확인합니다.
※ date는 미국의 CST 시간으로 저장됩니다.
000389966

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.