log


log는 3.0.0 버전 이상 부터 제공되며 해당 라이브러리를 추가하여 사용해야 된다.

print

로그를 디버깅 화면에 출력한다.

options

필드설명M/O
level

로그 레벨을 설정한다.

  • trace
  • info
  • warning
  • error
  • debug
M
message출력 메시지M
   

successCallback

필드설명
없음없음
  

errorCallback

필드설명
code에러코드
message에러메세지
 
 

Example

var level = "debug";
var message = "helloworld";
hone.channel.execute('log', 'print', [level, message],
   function () {
    }, function (e) {
        alert(JSON.stringify(e));
    }
);

Error Code

CodeCauseComment
E12100파라메터 값이 잘못되어 있을 경우 
E12101전달된 액션 값이 알 수 없는 액션일 경우 
E12102로그레벨 설정이 잘못되어 있을 경우 
E12103출력할 메시지가 잘못되어 있을 경우 
E12050실행 중 오류가 발생 되었을 경우 
E12099알 수없는 오류가 발생 되었을 경우