48 const char* version = LOGNCRASH_VERSION,
49 const char* collectorAddr = LOGNCRASH_COLLECTOR_ADDR,
50 const uint16_t collectorPort = LOGNCRASH_COLLECTOR_PORT,
51 const char* logSource = LOGNCRASH_LOGSOURCE,
52 const char* logType = LOGNCRASH_LOGTYPE
53 boolean clientHost =
true,
54 boolean asyncStart =
false);
247 const char* errorCode = NULL,
248 const char* location = NULL);
void clearCustomKeys()
clearCustomKeys는 사용자가 추가한 전체 필드를 삭제합니다.
String getUserId()
getUserId는 현재 UserID를 반환합니다.
void startSendThread()
startSendThread는 SendThread의 Lock 상태를 해제합니다.
void setDeduplicate(const bool enable)
setDeduplicate는 중복 로그 제거 설정 함수입니다. 중복 로그 제거 기능이란 일반 로그와 핸들드 로그의 경...
bool openCrashCatcher()
Crash Reporter인 breakpad를 활성화 합니다.
bool addCustomKey(const char *key, const char *value)
addCustomKey는 사용자 지정 필드를 추가합니다. key는 필드명, val은 필드값이 됩니다. 이때 필드명의 첫 단어는 a~z 혹은 A~Z로 시작하는 알파벳이어야 하며, 필드명의 경우 공백을 포함할 수 없습니다.
void setUserId(const char *userId)
setUserId는 UserID 필드를 정의합니다. UserID는 현재 로그를 발생시킨 사용자를 구별하기 위한 필드로...
bool sendLog(const char *level const char *message, const char *errorCode=NULL, const char *location=NULL)
일반 로그를 서버로 전송합니다.
void enableHost()
IP Address 수집 동작 설정
void closeCrashCatcher()
Crash Reporter인 breakpad를 비활성화 합니다.
void setLogLevel(int logLevel)
setLogLevel는 현재 logLevel를 설정합니다. 전송할 logLevel은. setLogLevel()로 지정된 logLevel보다 큰 l...
void removeCustomKey(const char *key)
removeCustomKey는 사용자가 추가한 특정 필드를 삭제합니다.
int initialize(const char *appKey, const char *version=LOGNCRASH_VERSION, const char *collectorAddr=LOGNCRASH_COLLECTOR_ADDR, const uint16_t collectorPort=LOGNCRASH_COLLECTOR_PORT, const char *logSource=LOGNCRASH_LOGSOURCE, const char *logType=LOGNCRASH_LOGTYPE boolean clientHost=true, boolean asyncStart=false)
toast/logncrash.h 를 포함하고 ToastLog class를 사용합니다. ToastLog 기능이 제대로 동작하기 위해서는 ë°...