Lines Matching refs:NapiLog
25 class NapiLog { class
29 NapiLog.LEV_NONE = 0;
30 NapiLog.LEV_ERROR = 1;
31 NapiLog.LEV_DEBUG = 2;
32 NapiLog.LEV_INFO = 3;
35 var logLevel = NapiLog.LEV_ERROR;
51 NapiLog.init = function (level, fileName) {
52 logLevel = level in [NapiLog.LEV_NONE, NapiLog.LEV_ERROR, NapiLog.LEV_DEBUG, NapiLog.LEV_INFO]
53 ? level : NapiLog.LEV_ERROR;
62 NapiLog.getCallPath = function(callerFuncName = null) {
106 let callPath = NapiLog.getCallPath("log");
110 if (lev == NapiLog.LEV_ERROR) {
115 NapiLog.logInfo(origMsgInfo[0]);
119 NapiLog.logError = function (...args) {
120 let logInfo = recordLog(NapiLog.LEV_ERROR, args);
124 NapiLog.logDebug = function (...args) {
125 recordLog(NapiLog.LEV_DEBUG, args);
128 NapiLog.logInfo = function (...args) {
129 recordLog(NapiLog.LEV_INFO, args);
132 NapiLog.getResult = function () {
137 NapiLog field